eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory Class Reference

Public Member Functions

 __construct (ContainerInterface $container)
 
 buildService (Repository $repository, $serviceName)
 Returns a service based on a name string (content => contentService, etc) More...
 
 getExternalStorageHandlers ()
 Returns registered external storage handlers for field types (as closures to be lazy loaded in the public API) More...
 
 getFieldTypes ()
 Returns registered field types (as closures to be lazy loaded in the public API) More...
 
 registerExternalStorageHandler ($serviceId, $fieldTypeAlias)
 Registers an external storage handler for a field type, identified by $fieldTypeAlias. More...
 
 registerFieldType ($fieldTypeServiceId, $fieldTypeAlias)
 Registers an eZ Publish field type. More...
 
 registerLimitationType ($limitationName, SPILimitationType $limitationType)
 Registers a limitation type for the RoleService. More...
 

Protected Attributes

 $container
 
 $externalStorages = array()
 
 $fieldTypes
 
 $roleLimitations = array()
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::__construct ( ContainerInterface  $container)

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::buildService ( Repository  $repository,
  $serviceName 
)

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

Parameters
\eZ\Publish\API\Repository\Repository$repository
string$serviceName
Exceptions
\eZ\Publish\Core\Base\Exceptions\InvalidArgumentException
Returns
mixed
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::getExternalStorageHandlers ( )

Returns registered external storage handlers for field types (as closures to be lazy loaded in the public API)

Returns
[]
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::getFieldTypes ( )

Returns registered field types (as closures to be lazy loaded in the public API)

Returns
[]
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::registerExternalStorageHandler (   $serviceId,
  $fieldTypeAlias 
)

Registers an external storage handler for a field type, identified by $fieldTypeAlias.

They are being registered as closures so that they will be lazy loaded.

Parameters
string$serviceIdThe external storage handler service Id
string$fieldTypeAliasThe field type alias (e.g. "ezstring")
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::registerFieldType (   $fieldTypeServiceId,
  $fieldTypeAlias 
)

Registers an eZ Publish field type.

Field types are being registered as a closure so that they will be lazy loaded.

Parameters
string$fieldTypeServiceIdThe field type service Id
string$fieldTypeAliasThe field type alias (e.g. "ezstring")
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::registerLimitationType (   $limitationName,
SPILimitationType  $limitationType 
)

Registers a limitation type for the RoleService.

Parameters
string$limitationName
\eZ\Publish\SPI\Limitation\Type$limitationType

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::$externalStorages = array()
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::$fieldTypes
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\RepositoryFactory::$roleLimitations = array()
protected

The documentation for this class was generated from the following file: