Interface

eZ\Bundle\EzPublishIOBundle\DependencyInjection\ConfigurationFactory

interface ConfigurationFactory

Factory for IO Handlers (metadata or binarydata) configuration.

Required to: - register an io handler - add custom semantic configuration below ezio.xxxhandler.. - customize the custom handler services, and initialize extra services definitions

Methods

addConfiguration(ArrayNodeDefinition $node)

Adds the handler's semantic configuration.

string getParentServiceId()

Returns the ID of the base, abstract service used to create the handlers.

configureHandler(Definition $serviceDefinition, array $config)

Configure the handler service based on the configuration.

Details

at line 38
public addConfiguration(ArrayNodeDefinition $node)

Adds the handler's semantic configuration.

Example: php $node ->info( 'my info' )->example( 'an example' ) ->children() ->scalarNode( 'an_argument' )->info( 'This is an argument' ) ->end();

Parameters

ArrayNodeDefinition $node The handler's configuration node.

at line 47
public string getParentServiceId()

Returns the ID of the base, abstract service used to create the handlers.

It will be used as the base name for instances of this handler, and as the parent of the instances' services.

Return Value

string

at line 60
public configureHandler(Definition $serviceDefinition, array $config)

Configure the handler service based on the configuration.

Arguments or calls can be added to the $serviceDefinition, extra services or parameters can be added to the container.

Note: if the factory implements ContainerAwareInterface, the ContainerBuilder will be made available as $this->container.

Parameters

Definition $serviceDefinition
array $config