Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding 3rd party bundles #5290

Closed
wants to merge 1 commit into from
Closed

Conversation

anacicconi
Copy link

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets #4635

@xabbuh
Copy link
Member

xabbuh commented May 24, 2015

👍


Another reason to create a new bundle is when you're overriding something
in a vendor's bundle. For instance, if you have to override an action of
the FOSUserBundle, then you should create a UserBundle that would be used
Copy link
Member

Choose a reason for hiding this comment

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

I suggest using a different example than FOSUserBundle. Once I finally release its 2.0 version, people would generally not need to overwrite our actions, because we provide lots of extension points in them. And overwriting FOSUserBundle 2 actions is the worse way to change the behavior.

Copy link
Member

Choose a reason for hiding this comment

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

I took out the example here in sha: c24862b, but we still have it in the linked doc. I don't think it's a huge deal, but if we can think of an easy other example, that'd be cool.

And btw - this is an awesome problem to have 👍. I hate overriding bundle controllers - it's almost always a problem when upgrading. So, I like the FOSU events a lot

weaverryan added a commit that referenced this pull request Jun 27, 2015
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5290).

Discussion
----------

Overriding 3rd party bundles

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #4635

Commits
-------

58bb3c5 overriding 3rd party bundles
@weaverryan
Copy link
Member

Thanks you very much Ana! I've merged this into the 2.3 branch with only a minor tweak at sha: c24862b

Another issue down :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants