diff --git a/bundles/inheritance.rst b/bundles/inheritance.rst index 90457f54320..40985105cb0 100644 --- a/bundles/inheritance.rst +++ b/bundles/inheritance.rst @@ -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 +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;