Skip to content

Commit bd7da67

Browse files
committed
Fix error in code
1 parent 3a4e226 commit bd7da67

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)