Skip to content

Commit 29b7fda

Browse files
committed
minor #10547 Mentioned the deprecation of kernel.root_dir (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #10547). Discussion ---------- Mentioned the deprecation of kernel.root_dir This fixes #10503. @ro0NL I need your help here. This is the only mention to `kernel.root_dir` in the docs (`getRootDir()` was not even mentioned). I'd like to remove this one too, but it looks like Symfony's code is using it: * Injected here: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/Resources/config/twig.xml#L84-L90 * Used in this Twig extension here: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Extension/CodeExtension.php#L180 Can't we fix the code to remove this occurrence? Thanks! Commits ------- 992fd08 Mentioned the deprecation of kernel.root_dir
2 parents 91c0c22 + 992fd08 commit 29b7fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/twig_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ format_file
612612

613613
Generates the file path inside an ``<a>`` element. If the path is inside
614614
the kernel root directory, the kernel root directory path is replaced by
615-
``kernel.root_dir`` (showing the full path in a tooltip on hover).
615+
``kernel.project_dir`` (showing the full path in a tooltip on hover).
616616

617617
format_file_from_text
618618
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)