{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/b7a9682d4568c1313664f46432459f0c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b7a9682d4568c1313664f46432459f0c","url":"https://api.github.com/users/pluff","login":"pluff","id":790802},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-10-31T16:40:51Z","closed_at":null,"comments":3,"url":"https://api.github.com/repos/symfony/symfony/issues/2527","body":"Hello.\r\n\r\nI met a problem with simple template overriding:\r\n```Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 523800 bytes) in /var/www/memory/vendor/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php on line 98 \r\n```\r\nIt seems like Twig gets infinite loop or somthing like that.\r\nI'm trying to create child bundle and override bundle template with [this manual](http://symfony.com/doc/2.0/cookbook/bundles/inheritance.html). My code is simple as:\r\n\r\n>//MemoryParentBundle:DefaultController\r\n>class DefaultController extends Controller\r\n>{\r\n>    /**\r\n>     * @Route(\"/hello/\")\r\n>     * @Template()\r\n>     */\r\n>   public function indexAction()\r\n>    {\r\n>        return array('name' => 'HELLO');\r\n>    }\r\n>}\r\n>\r\n>//MemoryParentBundle:Default:index.html.twig\r\n>Hello!\r\n>\r\n>//MemoryChildBundle.php\r\n>class MemoryChildBundle extends Bundle\r\n>{\r\n>    public function getParent()\r\n>    {\r\n>        return 'MemoryParentBundle';\r\n>    }\r\n>}\r\n>\r\n>//MemoryChildBundle:DefaultController\r\n>use Memory\\Bundle\\ParentBundle\\Controller\\DefaultController as Controller;\r\n>class DefaultController extends Controller\r\n>{\r\n>}\r\n>//MemoryChildBundle:Default:index.html.twig\r\n>{% include 'MemoryParentBundle:Default:index.html.twig' %}\r\n>world\r\n\r\nI do have all necessary \"use\" statements. Removing \"getParent\" method will solve the problem, but manual tells to keep it. What does it used for? Or maybe I'm tring to inherrit parent template with some additions in wrong way? ","html_url":"https://github.com/symfony/symfony/issues/2527","number":2527,"title":"Twig reaches memory limit","id":2098866,"created_at":"2011-10-31T16:30:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/7894bbdf1c05b18a1444ad8c76c9d583?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7894bbdf1c05b18a1444ad8c76c9d583","url":"https://api.github.com/users/stof","login":"stof","id":439401},"updated_at":"2011-10-31T16:40:51Z","url":"https://api.github.com/repos/symfony/symfony/issues/comments/2579416","body":"Currently no. We are searching a way to add this for 2.1","id":2579416,"created_at":"2011-10-31T16:40:51Z"}}