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

Commit5500e0b

Browse files
committed
bug#4267 Fix error in bundle installation standard example (WouterJ)
This PR was merged into the 2.3 branch.Discussion----------Fix error in bundle installation standard exampleI also included the class name, to make it more clear.| Q | A| --- | ---| Doc fix? | yes| New docs? | no| Applies to | all| Fixed tickets | -Commits-------bd7da67 Fix error in code
2 parents3a4e226 +bd7da67 commit5500e0b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

‎cookbook/bundles/best_practices.rst‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,20 @@ following standardized instructions in your ``README.md`` file.
230230
// app/AppKernel.php
231231
232232
// ...
233-
234-
public function registerBundles()
233+
class AppKernel extends Kernel
235234
{
236-
$bundles = array(
235+
public function registerBundles()
236+
{
237+
$bundles = array(
238+
// ...
239+
240+
new <vendor>\<bundle-name>\<bundle-long-name>(),
241+
);
242+
237243
// ...
238-
return new <vendor>\<bundle-name>\<bundle-long-name>(),
239-
);
244+
}
245+
246+
// ...
240247
}
241248
```
242249

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp