Skip to content

Commit 5d53e72

Browse files
authored
Fix issue #9798
see #9798
1 parent 3fd845a commit 5d53e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,10 +1052,10 @@ the User object, and use the ``isGranted()`` method (or
10521052

10531053
An alternative way to get the current user in a controller is to type-hint
10541054
the controller argument with
1055-
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface\\UserInterface`
1055+
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`
10561056
(and default it to ``null`` if being logged-in is optional)::
10571057

1058-
use Symfony\Component\Security\Core\User\UserInterface\UserInterface;
1058+
use Symfony\Component\Security\Core\User\UserInterface;
10591059

10601060
public function indexAction(UserInterface $user = null)
10611061
{

0 commit comments

Comments
 (0)