Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Tests\App\Behat\Extension;
  4.  
  5. use Behat\Testwork\Cli\ServiceContainer\CliExtension;
  6. use Behat\Testwork\EventDispatcher\ServiceContainer\EventDispatcherExtension;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\DependencyInjection\Definition;
  9.  
  10. /**
  11. * @author Vincent Chalamon <vincent@les-tilleuls.coop>
  12. */
  13. final class SuitesExtension extends EventDispatcherExtension
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function load(ContainerBuilder $container, array $config)
  19. {
  20. $definition = new Definition(ListSuitesController, []);
  21. $definition->addTag(CliExtension::CONTROLLER_TAG, ['priority' => 100]);
  22. $container->setDefinition(CliExtension::CONTROLLER_TAG.'.suites', $definition);
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement