Skip to content

Commit 3f6ffde

Browse files
committed
minor #12309 Remove deprecated directives in 5.0 docs (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Remove deprecated directives in 5.0 docs Commits ------- 5ab6ef2 Remove deprecated directives in 5.0 docs
2 parents fa942d9 + 5ab6ef2 commit 3f6ffde

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

templates.rst

-6
Original file line numberDiff line numberDiff line change
@@ -994,12 +994,6 @@ When rendering a template, Symfony looks for it first in the ``twig.paths``
994994
directories that don't define a namespace and then falls back to the default
995995
template directory (usually, ``templates/``).
996996

997-
.. deprecated:: 4.2
998-
999-
Symfony looks for templates in the ``src/Resources/views/`` too before
1000-
falling back to the default directory. But that behavior is deprecated since
1001-
Symfony 4.2 and will be removed in Symfony 5.0.
1002-
1003997
Using the above configuration, if your application renders for example the
1004998
``layout.html.twig`` template, Symfony will first look for
1005999
``email/default/templates/layout.html.twig`` and ``backend/templates/layout.html.twig``.

0 commit comments

Comments
 (0)