vendor/liip/theme-bundle/LiipThemeBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Liip/ThemeBundle
  4.  *
  5.  * (c) Liip AG
  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 Liip\ThemeBundle;
  11. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Liip\ThemeBundle\DependencyInjection\Compiler\ThemeCompilerPass;
  15. use Liip\ThemeBundle\DependencyInjection\Compiler\TemplateResourcesPass;
  16. use Liip\ThemeBundle\DependencyInjection\Compiler\AsseticTwigFormulaPass;
  17. class LiipThemeBundle extends Bundle
  18. {
  19.     public function build(ContainerBuilder $container)
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(new ThemeCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -10);
  23.         $container->addCompilerPass(new TemplateResourcesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -10);
  24.         $container->addCompilerPass(new AsseticTwigFormulaPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -10);
  25.     }
  26. }