Вход Регистрация
Файл: symfony-2.7/src/Symfony/Bundle/TwigBundle/TwigBundle.php
Строк: 100
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyBundleTwigBundle;

use 
SymfonyComponentHttpKernelBundleBundle;
use 
SymfonyComponentDependencyInjectionContainerBuilder;
use 
SymfonyBundleTwigBundleDependencyInjectionCompilerTwigEnvironmentPass;
use 
SymfonyBundleTwigBundleDependencyInjectionCompilerTwigLoaderPass;
use 
SymfonyBundleTwigBundleDependencyInjectionCompilerExceptionListenerPass;
use 
SymfonyBundleTwigBundleDependencyInjectionCompilerExtensionPass;

/**
 * Bundle.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class TwigBundle extends Bundle
{
    public function 
build(ContainerBuilder $container)
    {
        
parent::build($container);

        
$container->addCompilerPass(new ExtensionPass());
        
$container->addCompilerPass(new TwigEnvironmentPass());
        
$container->addCompilerPass(new TwigLoaderPass());
        
$container->addCompilerPass(new ExceptionListenerPass());
    }
}
Онлайн: 0
Реклама