File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -260,11 +260,11 @@ Now it looks like this::
260260
261261 public function registerBundles(): iterable
262262 {
263- yield FrameworkBundle();
264- yield TwigBundle();
263+ yield new FrameworkBundle();
264+ yield new TwigBundle();
265265
266266 if ('dev' === $this->getEnvironment()) {
267- yield WebProfilerBundle();
267+ yield new WebProfilerBundle();
268268 }
269269 }
270270
@@ -306,17 +306,8 @@ Now it looks like this::
306306 $routes->import(__DIR__.'/Controller/', 'attribute');
307307 }
308308
309- // optional, to use the standard Symfony cache directory
310- public function getCacheDir(): string
311- {
312- return __DIR__.'/../var/cache/'.$this->getEnvironment();
313- }
314-
315- // optional, to use the standard Symfony logs directory
316- public function getLogDir(): string
317- {
318- return __DIR__.'/../var/log';
319- }
309+ // optionally, you can define the getCacheDir() and getLogDir() methods
310+ // to override the default locations for these directories
320311 }
321312
322313Before continuing, run this command to add support for the new dependencies:
You can’t perform that action at this time.
0 commit comments