src/Behat/Behat/Context/ServiceContainer/ContextExtension.php
private function processContextInitializers(ContainerBuilder $container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::INITIALIZER_TAG);
        $definition = $container->getDefinition(self::FACTORY_ID);

        foreach ($references as $reference) {
            $definition->addMethodCall('registerContextInitializer', array($reference));
        }
    }
private function processContextInitializers(ContainerBuilder $container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::INITIALIZER_TAG);
        $definition = $container->getDefinition(self::FACTORY_ID);

        foreach ($references as $reference) {
            $definition->addMethodCall('registerContextInitializer', array($reference));
        }
    }
private function processContextInitializers ( ContainerBuilder $ container ) { $ references = $ this -> processor -> findAndSortTaggedServices ( $ container , self :: INITIALIZER_TAG ) ; $ definition = $ container -> getDefinition ( self :: FACTORY_ID ) ; foreach ( $ references as $ reference ) { $ definition -> addMethodCall ( 'registerContextInitializer' , array ( $ reference ) ) ; } }
Processes all context initializers.

@param ContainerBuilder $container
Processes all context initializers .