This PR was merged into the 1.x branch.
Discussion
----------
added a base node visitor to make compat between 1.x and 2.x possible
As suggested in #1644, that allows better compat between 1.x and 2.x
Commits
-------
881fb63 added a base node visitor to make compat between 1.x and 2.x possible
3f521d4 bumped to 1.20
This PR was merged into the 2.0-dev branch.
Discussion
----------
re-added Twig_Simple* classes to provide more compat between 1.x and 2.x
see #1644
Commits
-------
f4126f0 re-added Twig_Simple* classes to provide more compat between 1.x and 2.x
This PR was merged into the 1.x branch.
Discussion
----------
Fixed error guessing in blocks in a child template
Commits
-------
cfa1404 Fixed error guessing in blocks in a child template
This PR was squashed before being merged into the 2.0-dev branch (closes#1708).
Discussion
----------
Bugfix/constructor should not have optional loader
Following #1693 and the fact that "hasLoader" contains semantical error that loader is optional, this PR removes optionality of loader from Environment.
Commits
-------
ac2295c Bugfix/constructor should not have optional loader
This PR was merged into the 2.0-dev branch.
Discussion
----------
moved protected to private
Moved some protected properties/methods from protected to private.
I've changed protected properties/methods mostly on internal classes but not where it could potentially break BC too badly with existing code.
Classes where we could change protected to private but where it could be a problem for existing code:
* Twig_ExpressionParser
* Twig_Environment
* Twig_Lexer
* Twig_Node
* Twig_Parser (done in second commit)
* Twig_Template
closes#1645
Commits
-------
56a3791 moved protected to private (more)
dbd0c91 moved protected to private
This PR was merged into the 2.0-dev branch.
Discussion
----------
Remove reference to `String` loader in docs
Commits
-------
02a7bd6 Remove reference to `String` loader in docs
This PR was merged into the 1.x branch.
Discussion
----------
Added support for unconsumed macro arguments
Fixes#1159 and supplements #1699
Commits
-------
7f00cb9 Added support for unconsumed macro arguments
This PR was merged into the 2.0-dev branch.
Discussion
----------
Add Twig_ExistsLoaderInterface back for 1.x BC layer #1644
This is the 2.x change for 1.x BC layer of Twig_ExistsLoaderInterface for #1644
Commits
-------
3e546c9 Add Twig_ExistsLoaderInterface back for 1.x BC layer
This PR was merged into the 2.0-dev branch.
Discussion
----------
Fix the profiler node visitor signature for Twig 2.0
Commits
-------
e66b07d Fix the profiler node visitor signature for Twig 2.0
This PR was merged into the 2.0-dev branch.
Discussion
----------
Twig_Template::getContext() removal
`Twig_Template::getContext()` is an implementation detail as it is only used on some PHP versions, for some cases. But even with the big warning in the phpdoc, people want to use it, which is a really bad idea. Removing it in 1.x would be kind of a "BC break", so I propose to remove it in 2.0.
Commits
-------
a0261e7 removed code that people want to overide over and over again
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes#1666).
Discussion
----------
add ignore_missing agrument to source function
This basically works the same way as `ignore_missing` on the `include` function/tag.
Commits
-------
afa9358 add ignore_missing agrument to source function
* 1.x:
fixed edge case where tests would fail because of a cache issue
tweaked docs to avoid using an internal method in an example
deprecated Twig_Environment::clearTemplateCache()
fixed sandbox disabling when using the include function
Example about how to rename several blocks
fixed docs
Update batch filter docs with arguments