PHP Class eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory

Inheritance: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
Mostra file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldTypeCollectionFactory eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory Collection of fieldTypes, lazy loaded via a closure.
$fieldTypeNameableCollectionFactory eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeNameableCollectionFactory Collection of fieldTypes, lazy loaded via a closure.
$roleLimitations eZ\Publish\SPI\Limitation\Type[] Collection of limitation types for the RoleService.

Public Methods

Method Description
__construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, FieldTypeCollectionFactory $fieldTypeCollectionFactory, FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory, $repositoryClass, array $policyMap )
buildRepository ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, eZ\Publish\SPI\Search\Handler $searchHandler ) : eZ\Publish\API\Repository\Repository Builds the main repository, heart of eZ Publish API.
buildService ( eZ\Publish\API\Repository\Repository $repository, string $serviceName ) : mixed Returns a service based on a name string (content => contentService, etc).
registerLimitationType ( string $limitationName, eZ\Publish\SPI\Limitation\Type $limitationType ) Registers a limitation type for the RoleService.

Method Details

__construct() public method

public __construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, FieldTypeCollectionFactory $fieldTypeCollectionFactory, FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory, $repositoryClass, array $policyMap )
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$fieldTypeCollectionFactory eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory
$fieldTypeNameableCollectionFactory eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeNameableCollectionFactory
$policyMap array

buildRepository() public method

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.
public buildRepository ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, eZ\Publish\SPI\Search\Handler $searchHandler ) : eZ\Publish\API\Repository\Repository
$persistenceHandler eZ\Publish\SPI\Persistence\Handler
$searchHandler eZ\Publish\SPI\Search\Handler
return eZ\Publish\API\Repository\Repository

buildService() public method

Returns a service based on a name string (content => contentService, etc).
public buildService ( eZ\Publish\API\Repository\Repository $repository, string $serviceName ) : mixed
$repository eZ\Publish\API\Repository\Repository
$serviceName string
return mixed

registerLimitationType() public method

Registers a limitation type for the RoleService.
public registerLimitationType ( string $limitationName, eZ\Publish\SPI\Limitation\Type $limitationType )
$limitationName string
$limitationType eZ\Publish\SPI\Limitation\Type

Property Details

$fieldTypeCollectionFactory protected_oe property

Collection of fieldTypes, lazy loaded via a closure.
protected FieldTypeCollectionFactory,eZ\Publish\Core\Base\Container\ApiLoader $fieldTypeCollectionFactory
return eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory

$fieldTypeNameableCollectionFactory protected_oe property

Collection of fieldTypes, lazy loaded via a closure.
protected FieldTypeNameableCollectionFactory,eZ\Publish\Core\Base\Container\ApiLoader $fieldTypeNameableCollectionFactory
return eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeNameableCollectionFactory

$roleLimitations protected_oe property

Collection of limitation types for the RoleService.
protected Type[],eZ\Publish\SPI\Limitation $roleLimitations
return eZ\Publish\SPI\Limitation\Type[]