Skip to content

Commit 12c895a

Browse files
clarify that Bundle and AbstractBundle are different
Please see https://stackoverflow.com/questions/74704768/invalidconfigurationexception-with-custom-bundle-in-symfony6-2 for the details.
1 parent 05d37b8 commit 12c895a

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)