We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fd845a + 5d53e72 commit cc347eeCopy full SHA for cc347ee
security.rst
@@ -1052,10 +1052,10 @@ the User object, and use the ``isGranted()`` method (or
1052
1053
An alternative way to get the current user in a controller is to type-hint
1054
the controller argument with
1055
- :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface\\UserInterface`
+ :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`
1056
(and default it to ``null`` if being logged-in is optional)::
1057
1058
- use Symfony\Component\Security\Core\User\UserInterface\UserInterface;
+ use Symfony\Component\Security\Core\User\UserInterface;
1059
1060
public function indexAction(UserInterface $user = null)
1061
{
0 commit comments