Skip to content

Commit cc347ee

Browse files
committed
minor #9800 Fix issue #9798 (intco)
This PR was merged into the 3.4 branch. Discussion ---------- Fix issue #9798 see #9798 Commits ------- 5d53e72 Fix issue #9798
2 parents 3fd845a + 5d53e72 commit cc347ee

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)