Skip to content

Commit 59c4299

Browse files
author
Krzysztof Lechowski
committed
note to make sure user's overriding bundle is registered
1 parent 80a70b4 commit 59c4299

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bundles/inheritance.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ things like controllers, templates, and other files in a bundle's
1313
For example, suppose that you're installing the `FOSUserBundle`_, but you
1414
want to override its base ``layout.html.twig`` template, as well as one of
1515
its controllers. Suppose also that you have your own UserBundle where you want
16-
the overridden files to live. Start by registering the FOSUserBundle as the
17-
"parent" of your bundle::
16+
the overridden files to live.
17+
18+
.. note::
19+
20+
If you've just created your own UserBundle to make the overrides, make sure you register it in app/AppKernel.php
21+
22+
Let's start by registering the FOSUserBundle as the "parent" of your bundle::
1823

1924
// src/UserBundle/UserBundle.php
2025
namespace UserBundle;

0 commit comments

Comments
 (0)