symfony/symfony — pull request #2475 by cedriclombardot (2011-10-25 18:46:54+00:00)
Title: Add a new TwigExtension to enable to extends a template giving the key of a parameter wich is in the container

Add the capacity to set :

````
{% extends_by_config 'my_config.parameter_name' %}
````

Will be the same as :

````
{% extends 'DemoBundle::index.html.twig' %}
````
if the container parameter `my_config.parameter_name` value is `DemoBundle::index.html.twig`

----
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: no (i can't segmentation fault for symfony2 & phpunit)
Fixes the following tickets: -