src/Behat/Behat/EventDispatcher/ServiceContainer/EventDispatcherExtension.php
protected function loadStopOnFailureController(ContainerBuilder $container)
    {
        $definition = new Definition('Behat\Behat\EventDispatcher\Cli\StopOnFailureController', array(
            new Reference(EventDispatcherExtension::DISPATCHER_ID)
        ));
        $definition->addTag(CliExtension::CONTROLLER_TAG, array('priority' => 100));
        $container->setDefinition(CliExtension::CONTROLLER_TAG . '.stop_on_failure', $definition);
    }
protected function loadStopOnFailureController(ContainerBuilder $container)
    {
        $definition = new Definition('Behat\Behat\EventDispatcher\Cli\StopOnFailureController', array(
            new Reference(EventDispatcherExtension::DISPATCHER_ID)
        ));
        $definition->addTag(CliExtension::CONTROLLER_TAG, array('priority' => 100));
        $container->setDefinition(CliExtension::CONTROLLER_TAG . '.stop_on_failure', $definition);
    }
protected function loadStopOnFailureController ( ContainerBuilder $ container ) { $ definition = new Definition ( 'Behat\Behat\EventDispatcher\Cli\StopOnFailureController' , array ( new Reference ( EventDispatcherExtension :: DISPATCHER_ID ) ) ) ; $ definition -> addTag ( CliExtension :: CONTROLLER_TAG , array ( 'priority' => 100 ) ) ; $ container -> setDefinition ( CliExtension :: CONTROLLER_TAG . '.stop_on_failure' , $ definition ) ; }
Loads stop on failure controller.

@param ContainerBuilder $container
Loads stop on failure controller .