Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Tests\App\Behat\Extension;
- use Behat\Testwork\Cli\ServiceContainer\CliExtension;
- use Behat\Testwork\EventDispatcher\ServiceContainer\EventDispatcherExtension;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
- use Symfony\Component\DependencyInjection\Definition;
- /**
- * @author Vincent Chalamon <vincent@les-tilleuls.coop>
- */
- final class SuitesExtension extends EventDispatcherExtension
- {
- /**
- * {@inheritdoc}
- */
- public function load(ContainerBuilder $container, array $config)
- {
- $definition = new Definition(ListSuitesController, []);
- $definition->addTag(CliExtension::CONTROLLER_TAG, ['priority' => 100]);
- $container->setDefinition(CliExtension::CONTROLLER_TAG.'.suites', $definition);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement