Skip to content

[HttpKernel] Deprecate all occurrences of ArgumentValueResolverInterface #18498

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
Show file tree
Hide file tree
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
11 changes: 9 additions & 2 deletions components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,19 @@ of arguments that should be passed when executing that callable.
available through the `variadic`_ argument.

This functionality is provided by resolvers implementing the
:class:`Symfony\\Component\\HttpKernel\\Controller\\ArgumentValueResolverInterface`.
:class:`Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface`.
There are four implementations which provide the default behavior of
Symfony but customization is the key here. By implementing the
``ArgumentValueResolverInterface`` yourself and passing this to the
``ValueResolverInterface`` yourself and passing this to the
``ArgumentResolver``, you can extend this functionality.

.. versionadded:: 6.2

The ``ValueResolverInterface`` was introduced in Symfony 6.2. Prior to
6.2, you had to use the
:class:`Symfony\\Component\\HttpKernel\\Controller\\ArgumentValueResolverInterface`,
which defines different methods.

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

5) Calling the Controller
Expand Down
9 changes: 8 additions & 1 deletion reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,17 @@ controller.argument_value_resolver
**Purpose**: Register a value resolver for controller arguments such as ``Request``

Value resolvers implement the
:class:`Symfony\\Component\\HttpKernel\\Controller\\ArgumentValueResolverInterface`
:class:`Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface`
and are used to resolve argument values for controllers as described here:
:doc:`/controller/argument_value_resolver`.

.. versionadded:: 6.2

The ``ValueResolverInterface`` was introduced in Symfony 6.2. Prior to
6.2, you had to use the
:class:`Symfony\\Component\\HttpKernel\\Controller\\ArgumentValueResolverInterface`,
which defines different methods.

data_collector
--------------

Expand Down