40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Symfony\Bundle\TwigBundle;
|
|
|
|
use Symfony\Framework\Bundle\Bundle;
|
|
use Symfony\Components\DependencyInjection\ParameterBag\ParameterBagInterface;
|
|
use Symfony\Components\DependencyInjection\Loader\Loader;
|
|
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
use Symfony\Components\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension;
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
/**
|
|
* Bundle.
|
|
*
|
|
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
*/
|
|
class TwigBundle extends Bundle
|
|
{
|
|
/**
|
|
* Customizes the Container instance.
|
|
*
|
|
* @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
|
|
*
|
|
* @return ContainerBuilder A ContainerBuilder instance
|
|
*/
|
|
public function buildContainer(ParameterBagInterface $parameterBag)
|
|
{
|
|
ContainerBuilder::registerExtension(new TwigExtension());
|
|
}
|
|
}
|