File tree Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -84,19 +84,6 @@ method to return the right project directory::
84
84
}
85
85
}
86
86
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.
100
87
101
88
Cache Directory
102
89
~~~~~~~~~~~~~~~
@@ -113,6 +100,27 @@ the :method:`Symfony\\Component\\HttpKernel\\Kernel::getCacheDir` method. To
113
100
change this setting, override the ``getCacheDir() `` method to return the correct
114
101
cache directory.
115
102
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
+
116
124
Log Directory
117
125
~~~~~~~~~~~~~
118
126
You can’t perform that action at this time.
0 commit comments