eZ\Bundle\EzPublishIOBundle\DependencyInjection\ConfigurationFactory::configureHandler PHP Method

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
    public function configureHandler(ServiceDefinition $serviceDefinition, array $config);

Usage Example

 public function testConfigureHandler()
 {
     $handlerConfiguration = $this->provideHandlerConfiguration($this->container) + array('name' => 'my_test_handler', 'type' => 'test_handler');
     $handlerServiceId = $this->registerHandler($handlerConfiguration['name']);
     $this->factory->configureHandler($this->container->getDefinition($handlerServiceId), $handlerConfiguration);
     $this->validateConfiguredHandler($handlerServiceId);
     if ($this->factory instanceof ContainerAwareInterface) {
         $this->validateConfiguredContainer();
     }
 }