File tree 1 file changed +5
-14
lines changed
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::
260
260
261
261
public function registerBundles(): iterable
262
262
{
263
- yield FrameworkBundle();
264
- yield TwigBundle();
263
+ yield new FrameworkBundle();
264
+ yield new TwigBundle();
265
265
266
266
if ('dev' === $this->getEnvironment()) {
267
- yield WebProfilerBundle();
267
+ yield new WebProfilerBundle();
268
268
}
269
269
}
270
270
@@ -306,17 +306,8 @@ Now it looks like this::
306
306
$routes->import(__DIR__.'/Controller/', 'attribute');
307
307
}
308
308
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
320
311
}
321
312
322
313
Before continuing, run this command to add support for the new dependencies:
You can’t perform that action at this time.
0 commit comments