PHP Interface eZ\Bundle\EzPublishIOBundle\DependencyInjection\ConfigurationFactory

Required to: - register an io handler - add custom semantic configuration below ez_io.xxx_handler.. - customize the custom handler services, and initialize extra services definitions
Datei anzeigen Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
addConfiguration ( ArrayNodeDefinition $node ) Adds the handler's semantic configuration.
configureHandler ( Definition $serviceDefinition, array $config ) Configure the handler service based on the configuration.
getParentServiceId ( ) : string Returns the ID of the base, abstract service used to create the handlers.

Method Details

addConfiguration() public method

Example: php $node ->info( 'my info' )->example( 'an example' ) ->children() ->scalarNode( 'an_argument' )->info( 'This is an argument' ) ->end();
public addConfiguration ( ArrayNodeDefinition $node )
$node Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition The handler's configuration node.

configureHandler() public method

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.
public configureHandler ( Definition $serviceDefinition, array $config )
$serviceDefinition Symfony\Component\DependencyInjection\Definition
$config array

getParentServiceId() public method

It will be used as the base name for instances of this handler, and as the parent of the instances' services.
public getParentServiceId ( ) : string
return string