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

Extend AbstractBundle instead of Bundle #19873

Merged
merged 1 commit into from May 13, 2024

Conversation

javiereguiluz
Copy link
Member

Fixes #19838.

After this, we use AbstractBundle everywhere except for this example which explicitly shows the old way of doing things when extending Bundle: https://symfony.com/doc/current/bundles/extension.html#manually-registering-an-extension-class

@javiereguiluz javiereguiluz added this to the 6.4 milestone May 9, 2024
class AcmeBlogBundle extends Bundle
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;

class AcmeBlogBundle extends AbstractBundle
{
public function getPath(): string
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK, when we extend AbstractBundle, no need to override this. Maybe we can remove it ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I committed some changes to explain this differently. Thanks!

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants