From e2b7dad0060d83cee94d27798d3390a5d858d146 Mon Sep 17 00:00:00 2001 From: Enzo Santamaria <62953579+Enz000@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:11:15 +0100 Subject: [PATCH] [Security] fix getUser function link --- security.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security.rst b/security.rst index 65f83942432..9dafd16a883 100644 --- a/security.rst +++ b/security.rst @@ -1097,7 +1097,7 @@ token (or whatever you need to return) and return the JSON response: The ``#[CurrentUser]`` can only be used in controller arguments to retrieve the authenticated user. In services, you would use - :method:`Symfony\\Component\\Security\\Core\\Security::getUser`. + :method:`Symfony\\Bundle\\SecurityBundle\\Security::getUser`. That's it! To summarize the process: