I am migrating my app to Symfony 2.1 but I'm facing a big error. I've got a command which calls the templating service to render a twig template. The code +- is:
$content = $this->getContainer()->get('templating')->render('XBundle:Pdf:x.pdf.twig', array(
'variablea' => '',
'variableb' => ''
));
It was working without any problem in Symfony 2.0.X. But after migrating into Symfony 2.1, when that piece of code is called, an exception occurs:
Fatal error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator::isFresh() in /vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/Factory/Resource/FileResource.php on line 49
I've reported that in symfony/asseticbundle tracker on github like 14 days ago and nobody answers, which makes me think that I am the problem here... (https://github.com/symfony/AsseticBundle/issues/122)
What am I doing wrong?
Thanks!!
{{ url('my_account') }}
appears in the template. – Marcos García