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()
* 1.x:
made it possible to store templates with vfsStream
Improved Sandbox error handling
fixed .travis.yml
marked Twig_TokenStream::getSource() as being internal
fixed CHANGELOGO
bumped version to 1.26.2-DEV
prepared the 1.26.1 release
removed template source code for generated template classes when debug is disabled
updated CHANGELOG
This PR was merged into the 2.0-dev branch.
Discussion
----------
undeprecate interface for a smooth upgrade path
The interface should then become deprecated in Twig 2.1 (see https://github.com/symfony/symfony/issues/18427#issuecomment-253293223).
Commits
-------
232e5be revert deprecations for a smooth upgrade path
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
* 1.x:
fixed regression on static calls for functions/filters/tests
default implementation of getDebugInfo() for BC
fix docblock
bumped version to 1.26.1-DEV
prepared the 1.26.0 release
fixed logic
fixed error class
updated CHANGELOG
Take into account passed options when generating cache key (closes#1604)
updated CHANGELOG
normalizePath: Do not mangle phar URLs.
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
This PR was merged into the 1.x branch.
Discussion
----------
[WIP] Take into account passed options when generating cache key (closes#1604)
Cache depends on options like optimization or debug mode. If we generate different cache files depends on php version or enabled extensions - we can take into account options with wich env was created.
Commits
-------
9f3cfc3 Take into account passed options when generating cache key (closes#1604)
This PR was squashed before being merged into the 1.x branch (closes#2152).
Discussion
----------
normalizePath: Do not mangle phar URLs.
Removing consecutive slashes breaks phar URLs. Example:
phar:///foo/bar is turned into phar:/foo/bar.
This change preserves the three slashes if path starts with phar://.
Commits
-------
7dd63fc normalizePath: Do not mangle phar URLs.
This PR was merged into the 1.x branch.
Discussion
----------
added runtime extensions
Commits
-------
9cb6860 allowed filters/functions/tests implementation to use a different class than the extension they belong to
* 1.x:
deprecated Twig_ExtensionInterface::getName()
added some missing tests for functions/filters as static calls
added missing information in deprecatd.rst
This PR was merged into the 1.x branch.
Discussion
----------
deprecated Twig_ExtensionInterface::getName()
see #2147
Commits
-------
71f03df deprecated Twig_ExtensionInterface::getName()
This PR was merged into the 1.x branch.
Discussion
----------
added some missing tests for functions/filters as static calls
Commits
-------
c73e97e added some missing tests for functions/filters as static calls