vendor/tgalopin/html-sanitizer-bundle/src/HtmlSanitizerBundle.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the HTML sanitizer project.
  4.  *
  5.  * (c) Titouan Galopin <galopintitouan@gmail.com>
  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 HtmlSanitizer\Bundle;
  11. use HtmlSanitizer\Bundle\DependencyInjection\CompilerPass\RegisterUserExtensionsCompilerPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. /**
  15.  * @author Titouan Galopin <galopintitouan@gmail.com>
  16.  *
  17.  * @final
  18.  */
  19. class HtmlSanitizerBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         parent::build($container);
  24.         $container->addCompilerPass(new RegisterUserExtensionsCompilerPass());
  25.     }
  26. }