File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,18 @@ to hold the kernel. Now it looks like this::
195
195
// load the annotation routes
196
196
$routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation');
197
197
}
198
+
199
+ // optional, to use the standard Symfony cache directory
200
+ public function getCacheDir()
201
+ {
202
+ return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
203
+ }
204
+
205
+ // optional, to use the standard Symfony logs directory
206
+ public function getLogDir()
207
+ {
208
+ return dirname(__DIR__).'/var/logs';
209
+ }
198
210
}
199
211
200
212
Unlike the previous kernel, this loads an external ``app/config/config.yml `` file,
@@ -294,9 +306,7 @@ this:
294
306
your-project/
295
307
├─ app/
296
308
| ├─ AppKernel.php
297
- │ ├─ cache/
298
309
│ ├─ config/
299
- │ ├─ logs/
300
310
│ └─ Resources
301
311
| └─ views
302
312
| ├─ base.html.twig
@@ -306,6 +316,9 @@ this:
306
316
│ └─ App
307
317
| └─ Controller
308
318
| └─ MicroController.php
319
+ ├─ var/
320
+ | ├─ cache/
321
+ │ └─ logs/
309
322
├─ vendor/
310
323
│ └─ ...
311
324
├─ web/
You can’t perform that action at this time.
0 commit comments