This PR was merged into the 1.x branch.
Discussion
----------
deprecated not supported behavior
Commits
-------
b38f959 deprecated not supported behavior
This PR was merged into the 1.x branch.
Discussion
----------
rename Twig_Node::getName to getTemplateName and Twig_Node::getFile to getTemplateLine
Commits
-------
39d94df renamed Twig_Node::getLine() to Twig_Node::getTemplateLine()
e231aa5 renamed Twig_Node::getName() to Twig_Node::getTemplateName()
This PR was merged into the 1.x branch.
Discussion
----------
deprecated Twig_Template::getSource() in favor of Twig_Template::getSourceContext()
Commits
-------
7598f27 deprecated Twig_Template::getSource() in favor of Twig_Template::getSourceContext()
This PR was merged into the 1.x branch.
Discussion
----------
Try to rename filename to name where we really mean the template name, not the template path on the filesystem
Commits
-------
d03297e deprecated Twig_Node::getFilename() in favor of Twig_Node::getName()
eb47dc9 got rid of filename when we meant template name
This PR was merged into the 1.x branch.
Discussion
----------
added Twig_Source to hold information about the original template
Alternative to #2170
Commits
-------
6c76583 added Twig_Source to hold information about the original template
This PR was merged into the 1.x branch.
Discussion
----------
deprecated Twig_Error::getTemplateFile() and Twig_Error::setTemplateFile()
Commits
-------
b399ec0 deprecated Twig_Error::getTemplateFile() and Twig_Error::setTemplateFile()
This PR was merged into the 1.x branch.
Discussion
----------
deprecated Parser::getFilename()
The name is misleading as it returns the logical template name and not the proper filesystem path. In #2182, this is then replaced with a proper object. This PR simplifies the code review for #2182 by avoiding the pollution of all the changes in the token parser classes.
Commits
-------
d77f3dd deprecated Parser::getFilename()
This PR was merged into the 1.x branch.
Discussion
----------
made it possible to store templates with vfsStream
closes#2166
Commits
-------
4d60758 made it possible to store templates with vfsStream
This PR was squashed before being merged into the 1.x branch (closes#2176).
Discussion
----------
Improved Sandbox error handling
On the model of the SecurityNotAllowedFilterError, SecurityNotAllowedFunctionError and SecurityNotAllowedTagError, I added SecurityNotAllowedMethodError and SecurityNotAllowedPropertyError to allow the user to retrieve both the $className and $methodName/$propertyName from the exception.
Commits
-------
e1c980f Improved Sandbox error handling
This PR was merged into the 1.x branch.
Discussion
----------
marked Twig_TokenStream::getSource() as being internal
Commits
-------
4b1573b marked Twig_TokenStream::getSource() as being internal
This PR was merged into the 1.x branch.
Discussion
----------
removed template source code for generated template classes when debug is disabled
Commits
-------
7a04767 removed template source code for generated template classes when debug is disabled
This PR was merged into the 1.x branch.
Discussion
----------
fixed regression on static calls for functions/filters/tests
fixes#2160
What about deprecate this possibility? Using `__call()`/`__staticCall()` means that we don't support named arguments for instance.
Commits
-------
e01c29b fixed regression on static calls for functions/filters/tests
This PR was merged into the 1.x branch.
Discussion
----------
default implementation of getDebugInfo() for BC
eZ updated the code on their side in the meantime (see ezsystems/LegacyBridge#63), but there may be other projects doing similar things (fixes https://github.com/twigphp/Twig/pull/2129#discussion_r80250969).
Commits
-------
7b4cfdb default implementation of getDebugInfo() for BC