Skip to content

[HttpKernel] Remove ContainerAwareInterface occurrence #18477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,6 @@ on the request's information.
b) A new instance of your controller class is instantiated with no
constructor arguments.

c) If the controller implements :class:`Symfony\\Component\\DependencyInjection\\ContainerAwareInterface`,
``setContainer()`` is called on the controller object and the container
is passed to it. This step is also specific to the :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver`
sub-class used by the Symfony Framework.

.. deprecated:: 6.4

:class:`Symfony\\Component\\DependencyInjection\\ContainerAwareInterface` and
:class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait` are
deprecated since Symfony 6.4. Dependency injection should be used instead to
access the service container.

.. _component-http-kernel-kernel-controller:

3) The ``kernel.controller`` Event
Expand Down