Skip to content

Commit 30cbc05

Browse files
committed
Rewording
1 parent 1677c55 commit 30cbc05

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

reference/configuration/kernel.rst

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,6 @@ method to return the right project directory::
8484
}
8585
}
8686

87-
Build Directory
88-
~~~~~~~~~~~~~~~
89-
90-
**type**: ``string`` **default**: ``$this->getCacheDir()``
91-
92-
This returns the absolute path of a build directory of your Symfony project. This
93-
directory can be warmed up before deployment and be used as a read-only filesystem
94-
(ie Docker or AWS Lambda).
95-
96-
This value is exposed via the ``kernel.build_dir`` configuration parameter and
97-
the :method:`Symfony\\Component\\HttpKernel\\Kernel::getBuildDir` method. To
98-
change this setting, override the ``getBuildDir()`` method to return the correct
99-
build directory.
10087

10188
Cache Directory
10289
~~~~~~~~~~~~~~~
@@ -113,6 +100,27 @@ the :method:`Symfony\\Component\\HttpKernel\\Kernel::getCacheDir` method. To
113100
change this setting, override the ``getCacheDir()`` method to return the correct
114101
cache directory.
115102

103+
Build Directory
104+
~~~~~~~~~~~~~~~
105+
106+
**type**: ``string`` **default**: ``$this->getCacheDir()``
107+
108+
.. versionadded:: 5.2
109+
110+
The build directory feature was introduced in Symfony 5.2.
111+
112+
This returns the absolute path of a build directory of your Symfony project. This
113+
directory can be used to separate read-only cache (i.e. the compiled container)
114+
from read-write cache (i.e. cache pools). Specify a non-default value when the
115+
application is deployed in a read-only filesystem like a Docker container or AWS
116+
Lambda.
117+
118+
This value is exposed via the ``kernel.build_dir`` configuration parameter and
119+
the :method:`Symfony\\Component\\HttpKernel\\Kernel::getBuildDir` method. To
120+
change this setting, override the ``getBuildDir()`` method to return the correct
121+
build directory.
122+
123+
116124
Log Directory
117125
~~~~~~~~~~~~~
118126

0 commit comments

Comments
 (0)