Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc5f335b

Browse files
committed
Merge branch '4.4'
* 4.4: Update symfony 4 project structure
2 parentsb1b5076 +59989c2 commitc5f335b

File tree

1 file changed

+10
-33
lines changed

1 file changed

+10
-33
lines changed

‎bundles/best_practices.rst‎

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp