This PR was merged into the 1.x branch.
Discussion
----------
make getSourceContext a requirement for any loader
I'm going to follow the same protocol as for `Twig_ExistsLoaderInterface`.
Commits
-------
21ecba8 made using Twig_SourceContextLoaderInterface required
8c33708 made name required for Twig_Source
This PR was merged into the 1.x branch.
Discussion
----------
fixed the filesystem loader with relative paths
closes#2145
TODO
- [x] document the new `$rootPath` option
- [x] add test with a `$rootPath` different from `getcwd()`
- [x] test the cache key does not vary when `$rootPath` changes
Commits
-------
a343c92 fixed the filesystem loader with relative paths
This PR was merged into the 1.x branch.
Discussion
----------
deprecated not supported behavior
Commits
-------
b38f959 deprecated not supported behavior
* 1.x:
renamed Twig_Node::getLine() to Twig_Node::getTemplateLine()
renamed Twig_Node::getName() to Twig_Node::getTemplateName()
fix deprecation version number
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