File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -88,20 +88,43 @@ method to return the right project directory::
88
88
}
89
89
}
90
90
91
+
91
92
Cache Directory
92
93
~~~~~~~~~~~~~~~
93
94
94
95
**type **: ``string `` **default **: ``$this->getProjectDir()/var/cache/$this->environment ``
95
96
96
97
This returns the absolute path of the cache directory of your Symfony project.
97
98
It's calculated automatically based on the current
98
- :ref: `environment <configuration-environments >`.
99
+ :ref: `environment <configuration-environments >`. Data might be written to this path
100
+ at runtime.
99
101
100
102
This value is exposed via the ``kernel.cache_dir `` configuration parameter and
101
103
the :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getCacheDir ` method. To
102
- change this setting, override the ``getCacheDir() `` method to return the right
104
+ change this setting, override the ``getCacheDir() `` method to return the correct
103
105
cache directory.
104
106
107
+ Build Directory
108
+ ~~~~~~~~~~~~~~~
109
+
110
+ **type **: ``string `` **default **: ``$this->getCacheDir() ``
111
+
112
+ .. versionadded :: 5.2
113
+
114
+ The build directory feature was introduced in Symfony 5.2.
115
+
116
+ This returns the absolute path of a build directory of your Symfony project. This
117
+ directory can be used to separate read-only cache (i.e. the compiled container)
118
+ from read-write cache (i.e. cache pools). Specify a non-default value when the
119
+ application is deployed in a read-only filesystem like a Docker container or AWS
120
+ Lambda.
121
+
122
+ This value is exposed via the ``kernel.build_dir `` configuration parameter and
123
+ the :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getBuildDir ` method. To
124
+ change this setting, override the ``getBuildDir() `` method to return the correct
125
+ build directory.
126
+
127
+
105
128
Log Directory
106
129
~~~~~~~~~~~~~
107
130
You can’t perform that action at this time.
0 commit comments