File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,25 @@ Symfony ships with the following value resolvers in the
45
45
argument list. When the action is called, the last (variadic) argument will
46
46
contain all the values of this array.
47
47
48
- In addition, some official bundles provide other value resolvers:
48
+ In addition, some components and official bundles provide other value resolvers:
49
+
50
+ :class: `Symfony\\ Component\\ Security\\ Http\\ Controller\\ UserValueResolver `
51
+ Injects the object that represents 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 anonymous users. It requires installing
54
+ the :doc: `Security component </components/security >`.
49
55
50
56
:class: `Symfony\\ Bundle\\ SecurityBundle\\ SecurityUserValueResolver `
51
57
Injects the object that represents the current logged in user if type-hinted
52
58
with ``UserInterface ``. Default value can be set to ``null `` in case
53
59
the controller can be accessed by anonymous users. It requires installing
54
60
the `SecurityBundle `_.
55
61
62
+ .. deprecated :: 4.1
63
+
64
+ The resolver was deprecated in Symfony 4.1 in favor of
65
+ `Symfony\\Component\\Security\\Http\\Controller\\UserValueResolver `.
66
+
56
67
``Psr7ServerRequestResolver ``
57
68
Injects a `PSR-7 `_ compliant version of the current request if type-hinted
58
69
with ``RequestInterface ``, ``MessageInterface `` or ``ServerRequestInterface ``.
You can’t perform that action at this time.
0 commit comments