Skip to content

Commit 0e1b386

Browse files
committed
Document the SecurityUserValueResolver & Psr7ServerRequestResolver
1 parent 953a668 commit 0e1b386

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

controller/argument_value_resolver.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ Symfony ships with the following value resolvers in the HttpKernel component:
4242
argument list. When the action is called, the last (variadic) argument will
4343
contain all the values of this array.
4444

45+
Functionality Shipped with Additional Bundles
46+
---------------------------------------------
47+
48+
The SecurityBundle:
49+
50+
:class:`Symfony\\Bundle\\SecurityBundle\\SecurityUserValueResolver`
51+
Injects the user object of the current logged in user if type-hinted
52+
with ``UserInterface``. Default value can be set to ``null`` in case
53+
the controller can be accessed by non logged in users.
54+
55+
The SensioFrameworkExtraBundle:
56+
57+
``Psr7ServerRequestResolver``
58+
Injects a PSR-7 compliant version of the current request if type-hinted with
59+
``RequestInterface``, ``MessageInterface`` or ``ServerRequestInterface``.
60+
4561
Adding a Custom Value Resolver
4662
------------------------------
4763

0 commit comments

Comments
 (0)