vendor/prooph/service-bus-symfony-bundle/src/ProophServiceBusBundle.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * prooph (http://getprooph.org/)
  4.  *
  5.  * @see       https://github.com/prooph/service-bus-symfony-bundle for the canonical source repository
  6.  * @copyright Copyright (c) 2016 prooph software GmbH (http://prooph-software.com/)
  7.  * @license   https://github.com/prooph/service-bus-symfony-bundle/blob/master/LICENSE.md New BSD License
  8.  */
  9. declare(strict_types=1);
  10. namespace Prooph\Bundle\ServiceBus;
  11. use Prooph\Bundle\ServiceBus\DependencyInjection\Compiler\PluginsPass;
  12. use Prooph\Bundle\ServiceBus\DependencyInjection\Compiler\RoutePass;
  13. use Prooph\Bundle\ServiceBus\DependencyInjection\Compiler\StopwatchPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. final class ProophServiceBusBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         $container->addCompilerPass(new StopwatchPass());
  22.         $container->addCompilerPass(new PluginsPass());
  23.         $container->addCompilerPass(new RoutePass());
  24.     }
  25. }