Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions bundles/inheritance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ in one of your own bundles. Symfony gives you a very convenient way to override
things like controllers, templates, and other files in a bundle's
``Resources/`` directory.

For example, suppose that you're installing the `FOSUserBundle`_, but you
want to override its base ``layout.html.twig`` template, as well as one of
its controllers. Suppose also that you have your own UserBundle where you want
the overridden files to live. Start by registering the FOSUserBundle as the
"parent" of your bundle::
For example, suppose that you have installed `FOSUserBundle`_ but you want to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comma before "but"

override its base ``layout.html.twig`` template, as well as one of its
controllers.

First, create a new bundle called UserBundle and enable it in your application.
Then, register the third-party FOSUserBundle as the "parent" of your bundle::

// src/UserBundle/UserBundle.php
namespace UserBundle;
Expand Down