vendor/nelmio/security-bundle/NelmioSecurityBundle.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Nelmio SecurityBundle.
  4.  *
  5.  * (c) Nelmio <hello@nelm.io>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Nelmio\SecurityBundle;
  11. use Nelmio\SecurityBundle\DependencyInjection\Compiler\CspReportFilterCompilerPass;
  12. use Nelmio\SecurityBundle\DependencyInjection\Compiler\UAParserCompilerPass;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. class NelmioSecurityBundle extends Bundle
  16. {
  17.     public function build(ContainerBuilder $container)
  18.     {
  19.         parent::build($container);
  20.         $container->addCompilerPass(new UAParserCompilerPass());
  21.         $container->addCompilerPass(new CspReportFilterCompilerPass());
  22.     }
  23. }