Class

eZ\Bundle\EzPublishCoreBundle\ApiLoader\StorageEngineFactory

class StorageEngineFactory

The storage engine factory.

Methods

__construct(RepositoryConfigurationProvider $repositoryConfigurationProvider)

registerStorageEngine(Handler $persistenceHandler, string $storageEngineIdentifier)

Registers $persistenceHandler as a valid storage engine, with identifier $storageEngineIdentifier.

Handler[] getStorageEngines()

Handler buildStorageEngine()

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

Details

at line 32
public __construct(RepositoryConfigurationProvider $repositoryConfigurationProvider)

Parameters

RepositoryConfigurationProvider $repositoryConfigurationProvider

at line 45
public registerStorageEngine(Handler $persistenceHandler, string $storageEngineIdentifier)

Registers $persistenceHandler as a valid storage engine, with identifier $storageEngineIdentifier.

Note: It is strongly recommenced to register a lazy persistent handler.

Parameters

Handler $persistenceHandler
string $storageEngineIdentifier

at line 53
public Handler[] getStorageEngines()

Return Value

Handler[]

at line 65
public Handler buildStorageEngine()

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

Return Value

Handler

Exceptions

InvalidStorageEngine