equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace Symfony\Bundle\TwigBundle; |
|
13 |
|
14 use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
15 use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
16 use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigEnvironmentPass; |
|
17 use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExceptionListenerPass; |
|
18 |
|
19 /** |
|
20 * Bundle. |
|
21 * |
|
22 * @author Fabien Potencier <fabien@symfony.com> |
|
23 */ |
|
24 class TwigBundle extends Bundle |
|
25 { |
|
26 public function build(ContainerBuilder $container) |
|
27 { |
|
28 parent::build($container); |
|
29 |
|
30 $container->addCompilerPass(new TwigEnvironmentPass()); |
|
31 $container->addCompilerPass(new ExceptionListenerPass()); |
|
32 } |
|
33 } |