This PR was merged into the 1.18-dev branch. Discussion ---------- removed the special Sandbox Module class This PR removes the need for the special Sandbox Module class. This approach can be generalized by adding more "empty" nodes in the Module class to allow third-party extension to easily add code to the generated class. But I think that hacking the module class is always never a good idea and should be avoided (so this "feature" should not even be documented :)). This is an alternative for #1436, fixes #1402. Commits ------- 57400e2 added more hooks in Module 3b12d55 removed the special Sandbox Module class
This PR was merged into the 1.17-dev branch. Discussion ---------- added a profiler This profiler allows to better understand what's going on when rendering templates. It should be used when debug is true only as it adds some overhead. Here is a sample output in the text format: ``` main 567.04ms/100% └ index 463.28ms/82% └ base 463.24ms/82% └ base::block(header) └ index::block(content) 306.29ms/54% │ └ included 50.18ms/9% │ └ included 45.42ms/8% │ └ included 35.42ms/6% │ └ base::block(content) 104.97ms/19% │ │ └ included 34.90ms/6% │ └ included 35.84ms/6% └ base::block(footer) 156.84ms/28% └ included 38.96ms/7% └ base::macro(foo) ``` You can also dump a profile in a Blackfire compatible format to [visualise the data as a graph](http://goo.gl/RwNGFH). A profile is also a great way to be able to list all templates/blocks/macros that were used when rendering a template. A PR on Symfony (symfony/symfony#13428) integrates this profiler in the Symfony web profiler to replace the current TimedTwigEngine and to add a new Twig panel. ![symfony-web-profiler](https://cloud.githubusercontent.com/assets/47313/5755461/019cd6a4-9ca5-11e4-8762-68e2a709c336.png) Commits ------- 4408caa added a profiler
…the absolute ... (xavierleune) This PR was squashed before being merged into the 1.17-dev branch (closes #1598). Discussion ---------- FIX #1596 FileSystem::findTemplate now applies realpath on the absolute ... ...path before returning it. This is a purposal to fix the issue #1596. Please make any feedback needed. Commits ------- 5074114 FIX #1596 FileSystem::findTemplate now applies realpath on the absolute ...
…y (fabpot) This PR was merged into the 1.17-dev branch. Discussion ---------- added some more tests for the filename autoescape strategy Commits ------- 01ab6f3 added some more tests for the filename autoescape strategy