vendor/bundles/Symfony/Bundle/AsseticBundle/AsseticBundle.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     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 
       
    12 namespace Symfony\Bundle\AsseticBundle;
       
    13 
       
    14 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\AssetFactoryPass;
       
    15 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\AssetManagerPass;
       
    16 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\CheckYuiFilterPass;
       
    17 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\FilterManagerPass;
       
    18 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\CheckCssEmbedFilterPass;
       
    19 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\CheckClosureFilterPass;
       
    20 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\TemplatingPass;
       
    21 use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\SprocketsFilterPass;
       
    22 use Symfony\Component\DependencyInjection\ContainerBuilder;
       
    23 use Symfony\Component\HttpKernel\Bundle\Bundle;
       
    24 
       
    25 /**
       
    26  * Assetic integration.
       
    27  *
       
    28  * @author Kris Wallsmith <kris@symfony.com>
       
    29  */
       
    30 class AsseticBundle extends Bundle
       
    31 {
       
    32     public function build(ContainerBuilder $container)
       
    33     {
       
    34         parent::build($container);
       
    35 
       
    36         $container->addCompilerPass(new CheckClosureFilterPass());
       
    37         $container->addCompilerPass(new CheckCssEmbedFilterPass());
       
    38         $container->addCompilerPass(new CheckYuiFilterPass());
       
    39         $container->addCompilerPass(new SprocketsFilterPass());
       
    40         $container->addCompilerPass(new TemplatingPass());
       
    41         $container->addCompilerPass(new AssetFactoryPass());
       
    42         $container->addCompilerPass(new AssetManagerPass());
       
    43         $container->addCompilerPass(new FilterManagerPass());
       
    44     }
       
    45 }