From 59b4c3c50e313dad55f3ceb01431b3b116369283 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 24 Oct 2018 12:04:19 +0200 Subject: [PATCH 1/2] Mentioned the deprecation of kernel.root_dir --- reference/twig_reference.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 5ab86181883..bd1d7ab645f 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -614,6 +614,11 @@ Generates the file path inside an ```` element. If the path is inside the kernel root directory, the kernel root directory path is replaced by ``kernel.root_dir`` (showing the full path in a tooltip on hover). +.. versionadded:: 4.2 + The ``kernel.root_dir`` parameter, which stores the directory where the + Symfony kernel class is located. was deprecated in Symfony 4.2 and replaced + by ``kernel.project_dir``, which stores the main directory of the project. + format_file_from_text ~~~~~~~~~~~~~~~~~~~~~ From dd6b4c58d8d312b74f29503d841629c05b6183a9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 25 Oct 2018 08:49:40 +0200 Subject: [PATCH 2/2] Reworded --- reference/twig_reference.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index bd1d7ab645f..815805368db 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -612,12 +612,7 @@ format_file Generates the file path inside an ```` element. If the path is inside the kernel root directory, the kernel root directory path is replaced by -``kernel.root_dir`` (showing the full path in a tooltip on hover). - -.. versionadded:: 4.2 - The ``kernel.root_dir`` parameter, which stores the directory where the - Symfony kernel class is located. was deprecated in Symfony 4.2 and replaced - by ``kernel.project_dir``, which stores the main directory of the project. +``kernel.project_dir`` (showing the full path in a tooltip on hover). format_file_from_text ~~~~~~~~~~~~~~~~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy