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

Appearance settings

Commit 5500e0b

Browse filesBrowse 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 example I 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 parents 3a4e226 + bd7da67 commit 5500e0b
Copy full SHA for 5500e0b

File tree

Expand file treeCollapse file tree

1 file changed

+12
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-5
lines changed

‎cookbook/bundles/best_practices.rst

Copy file name to clipboardExpand all lines: cookbook/bundles/best_practices.rst
+12-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.