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 @@ -84,20 +84,43 @@ method to return the right project directory::
84
84
}
85
85
}
86
86
87
+
87
88
Cache Directory
88
89
~~~~~~~~~~~~~~~
89
90
90
91
**type **: ``string `` **default **: ``$this->getProjectDir()/var/cache/$this->environment ``
91
92
92
93
This returns the absolute path of the cache directory of your Symfony project.
93
94
It's calculated automatically based on the current
94
- :ref: `environment <configuration-environments >`.
95
+ :ref: `environment <configuration-environments >`. Data might be written to this path
96
+ at runtime.
95
97
96
98
This value is exposed via the ``kernel.cache_dir `` configuration parameter and
97
99
the :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getCacheDir ` method. To
98
- change this setting, override the ``getCacheDir() `` method to return the right
100
+ change this setting, override the ``getCacheDir() `` method to return the correct
99
101
cache directory.
100
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
+
101
124
Log Directory
102
125
~~~~~~~~~~~~~
103
126
You can’t perform that action at this time.
0 commit comments