eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory Class Reference

The storage engine factory. More...

Public Member Functions

 __construct (ContainerInterface $container)
 
 buildStorageEngine ($storageEngineIdentifier)
 Builds storage engine identified by $storageEngineIdentifier (the "alias" attribute in the service tag) More...
 
 registerStorageEngine ($storageEngineServiceId, $storageEngineIdentifier)
 Registers $storageEngineServiceId as a service Id to be used as a valid storage engine, with identifier $storageEngineIdentifier. More...
 

Protected Attributes

 $container
 
 $storageEngines = array()
 

Detailed Description

The storage engine factory.

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory::__construct ( ContainerInterface  $container)

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory::buildStorageEngine (   $storageEngineIdentifier)

Builds storage engine identified by $storageEngineIdentifier (the "alias" attribute in the service tag)

Parameters
string$storageEngineIdentifierThe storage engine identifier
Exceptions
\eZ\Bundle\EzPublishCoreBundle\ApiLoader\Exception\InvalidStorageEngine
Returns
eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory::registerStorageEngine (   $storageEngineServiceId,
  $storageEngineIdentifier 
)

Registers $storageEngineServiceId as a service Id to be used as a valid storage engine, with identifier $storageEngineIdentifier.

Parameters
string$storageEngineServiceId
string$storageEngineIdentifier

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory::$container
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory::$storageEngines = array()
protected

The documentation for this class was generated from the following file: