From 43f1ce924cc0b6a0ac457358f2b82b9c0ac562f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Sch=C3=B6nefeldt?= <1157580+Andreas-Schoenefeldt@users.noreply.github.com> Date: Wed, 7 Dec 2022 17:02:34 +0100 Subject: [PATCH] Tried to clarify that Bundle and AbstractBundle are different Please see https://stackoverflow.com/questions/74704768/invalidconfigurationexception-with-custom-bundle-in-symfony6-2 for the details. --- bundles/configuration.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bundles/configuration.rst b/bundles/configuration.rst index d8c7a44d7bd..2043f74cf30 100644 --- a/bundles/configuration.rst +++ b/bundles/configuration.rst @@ -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. Instead of creating an extension and configuration class, you can also extend :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` to