PHP Class eZ\Publish\Core\Base\Container\ApiLoader\Storage\ExternalStorageRegistryFactory

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

Protected Properties

Property Type Description
$externalStorages Closure[] Collection of external storage handlers for field types that need them.

Public Methods

Method Description
buildExternalStorageRegistry ( string $externalStorageRegistryClass ) : StorageRegistry Returns external storage registry.
getExternalStorageHandlers ( ) : Closure[] Returns registered external storage handlers for field types (as closures to be lazy loaded in the public API).
registerExternalStorageHandler ( string $serviceId, string $fieldTypeAlias ) Registers an external storage handler for a field type, identified by $fieldTypeAlias.

Method Details

buildExternalStorageRegistry() public method

Returns external storage registry.
public buildExternalStorageRegistry ( string $externalStorageRegistryClass ) : StorageRegistry
$externalStorageRegistryClass string
return eZ\Publish\Core\Persistence\Legacy\Content\StorageRegistry

getExternalStorageHandlers() public method

Returns registered external storage handlers for field types (as closures to be lazy loaded in the public API).
public getExternalStorageHandlers ( ) : Closure[]
return Closure[]

registerExternalStorageHandler() public method

They are being registered as closures so that they will be lazy loaded.
public registerExternalStorageHandler ( string $serviceId, string $fieldTypeAlias )
$serviceId string The external storage handler service Id
$fieldTypeAlias string The field type alias (e.g. "ezstring")

Property Details

$externalStorages protected_oe property

Collection of external storage handlers for field types that need them.
protected Closure[] $externalStorages
return Closure[]