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
4545 argument list. When the action is called, the last (variadic) argument will
4646 contain all the values of this array.
4747
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 >`.
4955
5056:class: `Symfony\\ Bundle\\ SecurityBundle\\ SecurityUserValueResolver `
5157 Injects the object that represents the current logged in user if type-hinted
5258 with ``UserInterface ``. Default value can be set to ``null `` in case
5359 the controller can be accessed by anonymous users. It requires installing
5460 the `SecurityBundle `_.
5561
62+ .. deprecated :: 4.1
63+
64+ The ``SecurityUserValueResolver `` was deprecated in Symfony 4.1 in favor of
65+ :class: `Symfony\\ Component\\ Security\\ Http\\ Controller\\ UserValueResolver `.
66+
5667``Psr7ServerRequestResolver ``
5768 Injects a `PSR-7 `_ compliant version of the current request if type-hinted
5869 with ``RequestInterface ``, ``MessageInterface `` or ``ServerRequestInterface ``.
You can’t perform that action at this time.
0 commit comments