PHP Class eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory

Mostra file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$storageEngines eZ\Publish\SPI\Persistence\Handler[] Key is the storage engine identifier, value persistence handler itself.

Public Methods

Method Description
__construct ( RepositoryConfigurationProvider $repositoryConfigurationProvider )
buildStorageEngine ( ) : eZ\Publish\SPI\Persistence\Handler Builds storage engine identified by $storageEngineIdentifier (the "alias" attribute in the service tag).
getStorageEngines ( ) : eZ\Publish\SPI\Persistence\Handler[]
registerStorageEngine ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, string $storageEngineIdentifier ) Registers $persistenceHandler as a valid storage engine, with identifier $storageEngineIdentifier.

Method Details

__construct() public method

public __construct ( RepositoryConfigurationProvider $repositoryConfigurationProvider )
$repositoryConfigurationProvider RepositoryConfigurationProvider

buildStorageEngine() public method

Builds storage engine identified by $storageEngineIdentifier (the "alias" attribute in the service tag).
public buildStorageEngine ( ) : eZ\Publish\SPI\Persistence\Handler
return eZ\Publish\SPI\Persistence\Handler

getStorageEngines() public method

public getStorageEngines ( ) : eZ\Publish\SPI\Persistence\Handler[]
return eZ\Publish\SPI\Persistence\Handler[]

registerStorageEngine() public method

Note: It is strongly recommenced to register a lazy persistent handler.
public registerStorageEngine ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, string $storageEngineIdentifier )
$persistenceHandler eZ\Publish\SPI\Persistence\Handler
$storageEngineIdentifier string

Property Details

$storageEngines protected_oe property

Key is the storage engine identifier, value persistence handler itself.
protected Handler[],eZ\Publish\SPI\Persistence $storageEngines
return eZ\Publish\SPI\Persistence\Handler[]