Skip to content

Commit 0d5968f

Browse files
committed
minor #7062 note to make sure user's overriding bundle is registered (kshishkin, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- note to make sure user's overriding bundle is registered Commits ------- c73bf94 Added missing comma 9351233 Reword the introduction to the article 59c4299 note to make sure user's overriding bundle is registered
2 parents a5a25f9 + c73bf94 commit 0d5968f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bundles/inheritance.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ in one of your own bundles. Symfony gives you a very convenient way to override
1010
things like controllers, templates, and other files in a bundle's
1111
``Resources/`` directory.
1212

13-
For example, suppose that you're installing the `FOSUserBundle`_, but you
14-
want to override its base ``layout.html.twig`` template, as well as one of
15-
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::
13+
For example, suppose that you have installed `FOSUserBundle`_, but you want to
14+
override its base ``layout.html.twig`` template, as well as one of its
15+
controllers.
16+
17+
First, create a new bundle called UserBundle and enable it in your application.
18+
Then, register the third-party FOSUserBundle as the "parent" of your bundle::
1819

1920
// src/UserBundle/UserBundle.php
2021
namespace UserBundle;

0 commit comments

Comments
 (0)