Skip to content

Commit b72d78b

Browse files
committed
minor #19393 [Security] fix getUser function link (Enz000)
This PR was submitted for the 7.0 branch but it was squashed and merged into the 6.3 branch instead. Discussion ---------- [Security] fix getUser function link `Symfony\Component\Security\Core\Security` class has been deprecated since 6.2 and deleted in 7.0. We should use `Symfony\Bundle\SecurityBundle\Security` instead. Commits ------- e2b7dad [Security] fix getUser function link
2 parents 57e6576 + e2b7dad commit b72d78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ token (or whatever you need to return) and return the JSON response:
10971097

10981098
The ``#[CurrentUser]`` can only be used in controller arguments to
10991099
retrieve the authenticated user. In services, you would use
1100-
:method:`Symfony\\Component\\Security\\Core\\Security::getUser`.
1100+
:method:`Symfony\\Bundle\\SecurityBundle\\Security::getUser`.
11011101

11021102
That's it! To summarize the process:
11031103

0 commit comments

Comments
 (0)