6213fdefb9
For existing Symfony2 applications, references to Symfony\Framework are found in the main Kernel class (registerBundles() and registerBundleDirs()), and in all Controller classes. You also need to change the console script.
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Symfony\Bundle\TwigBundle;
|
|
|
|
use Symfony\Foundation\Bundle\Bundle;
|
|
use Symfony\Components\DependencyInjection\ContainerInterface;
|
|
use Symfony\Components\DependencyInjection\Loader\Loader;
|
|
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
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.
|
|
*
|
|
* @package Symfony
|
|
* @subpackage Bundle_TwigBundle
|
|
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
*/
|
|
class TwigBundle extends Bundle
|
|
{
|
|
/**
|
|
* Customizes the Container instance.
|
|
*
|
|
* @param Symfony\Components\DependencyInjection\ContainerInterface $container A ContainerInterface instance
|
|
*
|
|
* @return Symfony\Components\DependencyInjection\BuilderConfiguration A BuilderConfiguration instance
|
|
*/
|
|
public function buildContainer(ContainerInterface $container)
|
|
{
|
|
Loader::registerExtension(new TwigExtension());
|
|
}
|
|
}
|