Skip to content

Commit 006821b

Browse files
committed
minor #17536 clarify that Bundle and AbstractBundle are different (Andreas-Schoenefeldt)
This PR was submitted for the 6.1 branch but it was merged into the 6.2 branch instead. Discussion ---------- clarify that Bundle and AbstractBundle are different Please see https://stackoverflow.com/questions/74704768/invalidconfigurationexception-with-custom-bundle-in-symfony6-2 for the details. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 1405de3 clarify that Bundle and AbstractBundle are different
2 parents 7f5ff2e + 1405de3 commit 006821b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bundles/configuration.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,17 @@ In your extension, you can load this and dynamically set its arguments::
319319
// ... now use the flat $config array
320320
}
321321

322-
Using the Bundle Class
323-
----------------------
322+
Using the AbstractBundle Class
323+
------------------------------
324324

325325
.. versionadded:: 6.1
326326

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

329+
.. caution::
330+
331+
This is an alternative implementation to the above mentioned Bundle class. You can use one of these approaches but not both at the same time.
332+
329333
Instead of creating an extension and configuration class, you can also
330334
extend :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` to
331335
add this logic to the bundle class directly::

0 commit comments

Comments
 (0)