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

Inheritance: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$fieldTypeCollectionFactory FieldTypeCollectionFactory Collection of fieldTypes, lazy loaded via a closure.
$fieldTypeNameableCollectionFactory FieldTypeNameableCollectionFactory Collection of fieldTypes, lazy loaded via a closure.
$roleLimitations eZ\Publish\SPI\Limitation\Type[] Collection of limitation types for the RoleService.

Méthodes publiques

Méthode Description
__construct ( $repositoryClass, FieldTypeCollectionFactory $fieldTypeCollectionFactory, FieldTypeNameableCollectionFactory $fieldTypeNameableCollectionFactory )
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 méthode

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

buildRepository() public méthode

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
Résultat eZ\Publish\API\Repository\Repository

buildService() public méthode

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
Résultat mixed

registerLimitationType() public méthode

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
Résultat FieldTypeCollectionFactory

$fieldTypeNameableCollectionFactory protected_oe property

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

$roleLimitations protected_oe property

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