File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,18 @@ Adding Interfaces to "Micro" Kernel
105
105
When using the ``MicroKernelTrait ``, you can also implement the
106
106
``CompilerPassInterface `` to automatically register the kernel itself as a
107
107
compiler pass as explained in the dedicated
108
- :ref: `compiler pass section <kernel-as-compiler-pass >`.
108
+ :ref: `compiler pass section <kernel-as-compiler-pass >`. If the
109
+ :class: `Symfony\\ Component\\ DependencyInjection\\ Extension\\ ExtensionInterface `
110
+ is implemented when using the ``MicroKernelTrait ``, then the kernel will
111
+ be automatically registered as an extension. You can learn more about it in
112
+ the dedicated section about
113
+ :ref: `managing configuration with extensions <components-dependency-injection-extension >`.
114
+
115
+ .. versionadded :: 5.2
116
+
117
+ The automatic registration of the kernel as an extension when implementing the
118
+ :class: `Symfony\\ Component\\ DependencyInjection\\ Extension\\ ExtensionInterface `
119
+ was introduced in Symfony 5.2.
109
120
110
121
It is also possible to implement the ``EventSubscriberInterface `` to handle
111
122
events directly from the kernel, again it will be registered automatically::
You can’t perform that action at this time.
0 commit comments