8000 minor #12719 [minor] remove usage of Kernel::$rootDir from docs (jzaw… · symfony/symfony-docs@a9aa86a · GitHub
[go: up one dir, main page]

Skip to content

Commit a9aa86a

Browse files
committed
minor #12719 [minor] remove usage of Kernel::$rootDir from docs (jzawadzki)
This PR was submitted for the 5.0 branch but it was squashed and merged into the 4.3 branch instead (closes #12719). Discussion ---------- [minor] remove usage of Kernel::$rootDir from docs As per symfony/symfony#28810 $rootDir has been removed in 5.0 - use getProjectDir in docs instead - small change to be consistent Commits ------- 9da96e1 [minor] remove usage of Kernel::$rootDir from docs
2 parents dc0c33c + 9da96e1 commit a9aa86a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/kernel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ method to return the right project directory::
105105
Cache Directory
106106
~~~~~~~~~~~~~~~
107107

108-
**type**: ``string`` **default**: ``$this->rootDir/cache/$this->environment``
108+
**type**: ``string`` **default**: ``$this->getProjectDir()/var/cache/$this->environment``
109109

110110
This returns the absolute path of the cache directory of your Symfony project.
111111
It's calculated automatically based on the current
@@ -119,7 +119,7 @@ cache directory.
119119
Log Directory
120120
~~~~~~~~~~~~~
121121

122-
**type**: ``string`` **default**: ``$this->rootDir/log``
122+
**type**: ``string`` **default**: ``$this->getProjectDir()/var/log``
123123

124124
.. deprecated:: 4.2
125125

0 commit comments

Comments
 (0)
0