File tree Expand file tree Collapse file tree 1 file changed +10
-33
lines changed Expand file tree Collapse file tree 1 file changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -306,26 +306,15 @@ following standardized instructions in your ``README.md`` file.
306306 ### Step 2: Enable the Bundle
307307
308308 Then, enable the bundle by adding it to the list of registered bundles
309- in the `app/AppKernel .php` file of your project:
309+ in the `config/bundles .php` file of your project:
310310
311311 ```php
312- // app/AppKernel.php
313-
314- // ...
315- class AppKernel extends Kernel
316- {
317- public function registerBundles()
318- {
319- $bundles = [
320- // ...
321- new <vendor>\<bundle-name>\<bundle-long-name>(),
322- ];
323-
324- // ...
325- }
312+ // config/bundles.php
326313
314+ return [
327315 // ...
328- }
316+ <vendor>\<bundle-name>\<bundle-long-name>::class => ['all' => true],
317+ ];
329318 ```
330319
331320 .. code-block :: rst
@@ -362,26 +351,14 @@ following standardized instructions in your ``README.md`` file.
362351 ~~~~~~~~~~~~~~~~~~~~~~~~~
363352
364353 Then, enable the bundle by adding it to the list of registered bundles
365- in the ``app/AppKernel.php`` file of your project::
366-
367- // app/AppKernel.php
368-
369- // ...
370- class AppKernel extends Kernel
371- {
372- public function registerBundles()
373- {
374- $bundles = [
375- // ...
376-
377- new <vendor>\<bundle-name>\<bundle-long-name>(),
378- ];
354+ in the ``config/bundles.php`` file of your project::
379355
380- // ...
381- }
356+ // config/bundles.php
382357
358+ return [
383359 // ...
384- }
360+ <vendor>\<bundle-name>\<bundle-long-name>::class => ['all' => true],
361+ ];
385362
386363 .. _`installation chapter`: https://getcomposer.org/doc/00-intro.md
387364
You can’t perform that action at this time.
0 commit comments