[WebBundle] fixed hardcoded php renderer in template paths

This commit is contained in:
Fabien Potencier 2010-05-20 13:53:39 +02:00
parent 78286bed68
commit bee9d77ed3
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@ class Bundle extends BaseBundle
{
Loader::registerExtension(new WebExtension());
$dirs = array('%kernel.root_dir%/views/%%bundle%%/%%controller%%/%%name%%%%format%%.php');
$dirs = array('%kernel.root_dir%/views/%%bundle%%/%%controller%%/%%name%%%%format%%.%%renderer%%');
foreach ($container->getParameter('kernel.bundle_dirs') as $dir) {
$dirs[] = $dir.'/%%bundle%%/Resources/views/%%controller%%/%%name%%%%format%%.php';
$dirs[] = $dir.'/%%bundle%%/Resources/views/%%controller%%/%%name%%%%format%%.%%renderer%%';
}
$container->setParameter('templating.loader.filesystem.path', $dirs);