mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
added a note about Environment::resolveTemplate in 3.0
This commit is contained in:
@@ -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
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user