src/AppBundle/AppBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace AppBundle;
  3. use AppBundle\DependencyInjection\CompilerPass\NotificationPass;
  4. use AppBundle\Model\Settings\ProfileRoleInterface;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. /**
  8.  * Class AppBundle.
  9.  */
  10. class AppBundle extends Bundle
  11. {
  12.     /**
  13.      * {@inheritDoc}
  14.      */
  15.     public function build(ContainerBuilder $container)
  16.     {
  17.         $container->registerForAutoconfiguration(ProfileRoleInterface::class)->addTag('app.profile_role');
  18.         $container->addCompilerPass(new NotificationPass());
  19.     }
  20. }