Class

eZ\Publish\Core\Base\Container\ApiLoader\RepositoryFactory

class RepositoryFactory implements ContainerAwareInterface

Methods

__construct($repositoryClass, FieldTypeCollectionFactory $fieldTypeCollectionFactory, FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory)

Repository buildRepository(Handler $persistenceHandler, Handler $searchHandler, BackgroundIndexer $backgroundIndexer)

Builds the main repository, heart of eZ Publish API.

registerLimitationType(string $limitationName, Type $limitationType)

Registers a limitation type for the RoleService.

mixed buildService(Repository $repository, string $serviceName)

Returns a service based on a name string (content => contentService, etc).

Details

at line 51
public __construct($repositoryClass, FieldTypeCollectionFactory $fieldTypeCollectionFactory, FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory)

Parameters

$repositoryClass
FieldTypeCollectionFactory $fieldTypeCollectionFactory
FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory

at line 73
public Repository buildRepository(Handler $persistenceHandler, Handler $searchHandler, BackgroundIndexer $backgroundIndexer)

Builds the main repository, heart of eZ Publish API.

This always returns the true inner Repository, please depend on ezpublish.api.repository and not this method directly to make sure you get an instance wrapped inside Signal / Cache / * functionality.

Parameters

Handler $persistenceHandler
Handler $searchHandler
BackgroundIndexer $backgroundIndexer

Return Value

Repository

at line 102
public registerLimitationType(string $limitationName, Type $limitationType)

Registers a limitation type for the RoleService.

Parameters

string $limitationName
Type $limitationType

at line 117
public mixed buildService(Repository $repository, string $serviceName)

Returns a service based on a name string (content => contentService, etc).

Parameters

Repository $repository
string $serviceName

Return Value

mixed

Exceptions

InvalidArgumentException