vendor/sanpi/assetic-bundle/AsseticBundle.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony framework.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Symfony\Bundle\AsseticBundle;
  11. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. /**
  15.  * Assetic integration.
  16.  *
  17.  * @author Kris Wallsmith <kris@symfony.com>
  18.  */
  19. class AsseticBundle extends Bundle
  20. {
  21.     public function build(ContainerBuilder $container)
  22.     {
  23.         if (version_compare(PHP_VERSION'7.1''<=')) {
  24.             @trigger_error('assetic-bundle will drop support for PHP < 7.1 in version 3.0.'E_USER_DEPRECATED);
  25.         }
  26.         $container->addCompilerPass(new Compiler\TemplateResourcesPass());
  27.         $container->addCompilerPass(new Compiler\CheckClosureFilterPass());
  28.         $container->addCompilerPass(new Compiler\CheckCssEmbedFilterPass());
  29.         $container->addCompilerPass(new Compiler\CheckYuiFilterPass());
  30.         $container->addCompilerPass(new Compiler\SprocketsFilterPass());
  31.         $container->addCompilerPass(new Compiler\TemplatingPass());
  32.         $container->addCompilerPass(new Compiler\AssetFactoryPass());
  33.         $container->addCompilerPass(new Compiler\AssetManagerPass());
  34.         $container->addCompilerPass(new Compiler\FilterManagerPass());
  35.         $container->addCompilerPass(new Compiler\RouterResourcePass());
  36.         $container->addCompilerPass(new Compiler\StaticAsseticHelperPass());
  37.     }
  38. }