Skip to content

Commit e2983cc

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor tweak Update micro_kernel_trait.rst
2 parents 26e69bd + b67e277 commit e2983cc

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

configuration/micro_kernel_trait.rst

+5-14
Original file line numberDiff line numberDiff 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

322313
Before continuing, run this command to add support for the new dependencies:

0 commit comments

Comments
 (0)