vendor/mgilet/notification-bundle/MgiletNotificationBundle.php line 19

Open in your IDE?
  1. <?php
  2. namespace Mgilet\NotificationBundle;
  3. use Mgilet\NotificationBundle\DependencyInjection\Compiler\ResolveTargetEntitiesPass;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  7. /**
  8.  * MgiletNotificationBundle
  9.  *
  10.  * A simple Symfony 3 bundle for user notifications
  11.  *
  12.  * @author    Maximilien Gilet <maximilien248@gmail.com>
  13.  * @license   http://opensource.org/licenses/MIT The MIT License
  14.  * @link      https://github.com/maximilienGilet/notification-bundle Repo for this bundle
  15.  */
  16. class MgiletNotificationBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container){
  19.         parent::build($container);
  20.         $container->addCompilerPass(new ResolveTargetEntitiesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION1);
  21.     }
  22. }