vendor/karo-io/messenger-monitor-bundle/src/KaroIOMessengerMonitorBundle.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace KaroIO\MessengerMonitorBundle;
  4. use KaroIO\MessengerMonitorBundle\DependencyInjection\FailureReceiverPass;
  5. use KaroIO\MessengerMonitorBundle\DependencyInjection\ReceiverLocatorPass;
  6. use Symfony\Component\Config\FileLocator;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  9. use Symfony\Component\HttpKernel\Bundle\Bundle;
  10. /**
  11.  * @internal
  12.  */
  13. final class KaroIOMessengerMonitorBundle extends Bundle
  14. {
  15.     public function build(ContainerBuilder $container)
  16.     {
  17.         parent::build($container);
  18.         $loader = new XmlFileLoader(
  19.             $container,
  20.             new FileLocator(__DIR__.'/Resources/config')
  21.         );
  22.         $loader->load('services.xml');
  23.         $container->addCompilerPass(new ReceiverLocatorPass());
  24.         $container->addCompilerPass(new FailureReceiverPass());
  25.     }
  26. }