added a note about Environment::resolveTemplate in 3.0

This commit is contained in:
Fabien Potencier
2019-03-15 17:40:35 +01:00
parent 6d35153bd2
commit d6df732a8b
+5
View File
@@ -72,6 +72,11 @@ Environment
``Twig\Environment::load()`` and ``Twig\Environment::resolveTemplate()`` is
deprecated.
* Depending on the input, ``Twig\Environment::resolveTemplate()`` can return
a ``Twig\Template`` or a ``Twig\TemplateWrapper`` instance. In Twig 3.0, this
method will **always** return a ``Twig\TemplateWrapper`` instance. You should
only rely on the methods of this class if you want to be forward-compatible.
Interfaces
----------