Permalink
Browse files

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
  • Loading branch information...
wouterj committed Sep 25, 2014
2 parents 3a4e226 + bd7da67 commit 5500e0b211633e65de693f0eca7dddfef52ee35e
Showing with 12 additions and 5 deletions.
  1. +12 −5 cookbook/bundles/best_practices.rst
@@ -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>(),
);
}
// ...
}
```

0 comments on commit 5500e0b

Please sign in to comment.