Skip to content

Commit 5b74291

Browse files
committed
minor #18406 [HttpKernel] Deprecate ContainerAwareInterface and ContainerAwareTrait (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Deprecate `ContainerAwareInterface` and `ContainerAwareTrait` Related to symfony/symfony#50615 Fix #18440 Commits ------- abd50b7 [HttpKernel] Deprecate `ContainerAwareInterface` and `ContainerAwareTrait`
2 parents 2a23f4b + abd50b7 commit 5b74291

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/http_kernel.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ on the request's information.
263263
is passed to it. This step is also specific to the :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver`
264264
sub-class used by the Symfony Framework.
265265

266+
.. deprecated:: 6.4
267+
268+
:class:`Symfony\\Component\\DependencyInjection\\ContainerAwareInterface` and
269+
:class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait` are
270+
deprecated since Symfony 6.4. Dependency injection should be used instead to
271+
access the service container.
272+
266273
.. _component-http-kernel-kernel-controller:
267274

268275
3) The ``kernel.controller`` Event

0 commit comments

Comments
 (0)