Skip to content

Commit

Permalink
bug #4267 Fix error in bundle installation standard example (WouterJ)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Sep 25, 2014
2 parents 3a4e226 + bd7da67 commit 5500e0b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions cookbook/bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,20 @@ following standardized instructions in your ``README.md`` file.
// app/AppKernel.php
// ...
public function registerBundles()
class AppKernel extends Kernel
{
$bundles = array(
public function registerBundles()
{
$bundles = array(
// ...
new <vendor>\<bundle-name>\<bundle-long-name>(),
);
// ...
return new <vendor>\<bundle-name>\<bundle-long-name>(),
);
}
// ...
}
```
Expand Down

0 comments on commit 5500e0b

Please sign in to comment.