Skip to content

Tried to clarify that Bundle and AbstractBundle are different #17534

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,16 @@ In your extension, you can load this and dynamically set its arguments::
// ... now use the flat $config array
}

Using the Bundle Class
----------------------
Using the AbstractBundle Class
------------------------------

.. versionadded:: 6.1

The ``AbstractBundle`` class was introduced in Symfony 6.1.

.. caution::

This is an alternative implementation to the above mentioned Bundle class. Bundle and AbstractBundle are not compatible.
Copy link
Member

Choose a reason for hiding this comment

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

I'd say after the first sentence something like...

You can use one of these approaches but not both at the same time.

that would make clearer what "not compatible" means in this context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx, I'm definitely not a native speaker :)


Instead of creating an extension and configuration class, you can also
extend :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` to
Expand Down