class TwigBundle extends Bundle
{ /**
* @return void
*/
public function build(ContainerBuilder
$container) { parent::
build($container);
// ExtensionPass must be run before the FragmentRendererPass as it adds tags that are processed later
$container->
addCompilerPass(new ExtensionPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10
);
$container->
addCompilerPass(new TwigEnvironmentPass());
$container->
addCompilerPass(new TwigLoaderPass());
$container->
addCompilerPass(new RuntimeLoaderPass(), PassConfig::TYPE_BEFORE_REMOVING
);
} /**
* @return void
*/
public function registerCommands(Application
$application) { // noop
}}