infrastructure/Assetic/AsseticBundle.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien@symfony.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace Symfony\Bundle\AsseticBundle;
  12. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16. * Assetic integration.
  17. *
  18. * @author Kris Wallsmith <kris@symfony.com>
  19. */
  20. class AsseticBundle extends Bundle
  21. {
  22. public function build(ContainerBuilder $container)
  23. {
  24. $container->addCompilerPass(new Compiler\TemplateResourcesPass());
  25. $container->addCompilerPass(new Compiler\CheckClosureFilterPass());
  26. $container->addCompilerPass(new Compiler\TemplatingPass());
  27. $container->addCompilerPass(new Compiler\AssetFactoryPass());
  28. $container->addCompilerPass(new Compiler\AssetManagerPass());
  29. $container->addCompilerPass(new Compiler\FilterManagerPass());
  30. $container->addCompilerPass(new Compiler\RouterResourcePass());
  31. }
  32. }