class FileSerializationObjectManager implements ObjectManager, EventManagerAwareInterface, ListenerInvokerProviderInterface (View source)

ObjectManager implementation using FileSerializationObjectRepository

Traits

ObjectManagerTrait
Trait for objects that define a object directory mapping strategy
Trait for objects that define an object filename mapping strategy
Trait for objects that holds a file serialization system

Properties

protected FilenameMapperInterface $filenameMapper from FilenameStrategyTrait
protected string|NULL $extension from FilenameStrategyTrait
protected MediaTypeInterface|NULL $mediaType from SerializationStrategyTrait

Methods

string
getBasePath()

No description

setBasePath(string $path)

No description

setFilenameMapper(FilenameMapperInterface $filenameMapper = null)

No description

setFileExtension(string $extension)

No description

FileSerializerInterface|FileUnserializerInterface|NULL
getSerializationManager()

No description

setSerializationManager(FileSerializerInterface|FileUnserializerInterface|NULL $serializationManager)

No description

MediaTypeInterface|NULL
getFileMediaType()

No description

setFileMediaType(MediaTypeInterface $mediaType)

No description

__construct()

No description

configure(Configuration $configuration)

Initialize object manager from a OFM configuration

EventManager
getEventManager()

No description

setEventManager(EventManager $evm)

{@inheritdoc}

getListenerInvoker()

{@inheritdoc}

setListenerInvoker(object $invoker)

No description

getRepository($className)

{@inheritdoc}

NULL|mixed|array|ArrayAccess|ContainerInterface|Traversable|ObjectRepository
getPersister(string $className)

Get object persister interface for the given object lcass.

getObjectFile($object)

No description

NULL|string
getObjectBasePath(string $className)

Get object file storage for the given class.

ObjectRepository
createObjectRepository(string $className)

No description

Details

string getBasePath()

Return Value

string

setBasePath(string $path)

Parameters

string $path Base path

setDirectoryMapper(DirectoryMapperInterface $mapper)

Parameters

DirectoryMapperInterface $mapper Object storage directory mapping strategy

setFilenameMapper(FilenameMapperInterface $filenameMapper = null)

Parameters

FilenameMapperInterface $filenameMapper

getFileExtension()

string

setFileExtension(string $extension)

Parameters

string $extension Filename extension

FileSerializerInterface|FileUnserializerInterface|NULL getSerializationManager()

Return Value

FileSerializerInterface|FileUnserializerInterface|NULL

setSerializationManager(FileSerializerInterface|FileUnserializerInterface|NULL $serializationManager)

Parameters

FileSerializerInterface|FileUnserializerInterface|NULL $serializationManager Serializer

Exceptions

InvalidArgumentException

MediaTypeInterface|NULL getFileMediaType()

Return Value

MediaTypeInterface|NULL

setFileMediaType(MediaTypeInterface $mediaType)

Parameters

MediaTypeInterface $mediaType Media type of the generated file

__construct()

configure(Configuration $configuration)

Initialize object manager from a OFM configuration

Parameters

Configuration $configuration Configuration

EventManager getEventManager()

Return Value

EventManager

setEventManager(EventManager $evm)

{@inheritdoc}

Parameters

EventManager $evm

See also

\NoreSources\OFM\Event\EventManagerAwareInterface::setEventManager()

getListenerInvoker()

{@inheritdoc}

See also

\NoreSources\Persistence\Event\ListenerInvokerProviderInterface::getListenerInvoker()

setListenerInvoker(object $invoker)

Parameters

object $invoker An object that will invoke lifecycle callbacks, object listener and event manager events.

getRepository($className)

{@inheritdoc}

Parameters

$className

See also

\Doctrine\Persistence\ObjectManager::getRepository()

NULL|mixed|array|ArrayAccess|ContainerInterface|Traversable|ObjectRepository getPersister(string $className)

Get object persister interface for the given object lcass.

Parameters

string $className Class name

Return Value

NULL|mixed|array|ArrayAccess|ContainerInterface|Traversable|ObjectRepository

getObjectFile($object)

Parameters

$object

NULL|string getObjectBasePath(string $className)

Get object file storage for the given class.

Parameters

string $className Class name

Return Value

NULL|string

protected ObjectRepository createObjectRepository(string $className)

Parameters

string $className Class name

Return Value

ObjectRepository