Skip to content

Document the SecurityUserValueResolver & Psr7ServerRequestResolver #11467

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
Apr 23, 2019
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
16 changes: 16 additions & 0 deletions controller/argument_value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ Symfony ships with the following value resolvers in the HttpKernel component:
argument list. When the action is called, the last (variadic) argument will
contain all the values of this array.

Functionality Shipped with Additional Bundles
---------------------------------------------

The SecurityBundle:

:class:`Symfony\\Bundle\\SecurityBundle\\SecurityUserValueResolver`
Injects the user object of the current logged in user if type-hinted
with ``UserInterface``. Default value can be set to ``null`` in case
the controller can be accessed by non logged in users.

The SensioFrameworkExtraBundle:

``Psr7ServerRequestResolver``
Injects a PSR-7 compliant version of the current request if type-hinted with
``RequestInterface``, ``MessageInterface`` or ``ServerRequestInterface``.

Adding a Custom Value Resolver
------------------------------

Expand Down