vendor/php-flasher/flasher-symfony/FlasherSymfonyBundle.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the PHPFlasher package.
  4.  * (c) Younes KHOUBZA <younes.khoubza@gmail.com>
  5.  */
  6. namespace Flasher\Symfony;
  7. use Flasher\Symfony\Bridge\FlasherBundle;
  8. use Flasher\Symfony\DependencyInjection\Compiler\EventSubscriberCompilerPass;
  9. use Flasher\Symfony\DependencyInjection\Compiler\FactoryCompilerPass;
  10. use Flasher\Symfony\DependencyInjection\Compiler\PresenterCompilerPass;
  11. use Flasher\Symfony\DependencyInjection\FlasherExtension;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. class FlasherSymfonyBundle extends FlasherBundle // Symfony\Component\HttpKernel\Bundle\Bundle
  14. {
  15.     /**
  16.      * {@inheritdoc}
  17.      */
  18.     protected function flasherBuild(ContainerBuilder $container)
  19.     {
  20.         $container->addCompilerPass(new FactoryCompilerPass());
  21.         $container->addCompilerPass(new EventSubscriberCompilerPass());
  22.         $container->addCompilerPass(new PresenterCompilerPass());
  23.     }
  24.     /**
  25.      * {@inheritdoc}
  26.      */
  27.     protected function getFlasherContainerExtension()
  28.     {
  29.         return new FlasherExtension();
  30.     }
  31. }