M
M
Maxim2015-09-26 17:42:11
symfony
Maxim, 2015-09-26 17:42:11

How to get the user who is logged into symfony?

tried to do so

$users = new Users();
$user = $users->getName();

and of course I got NULL and this is quite logical, because there is no query to the database itself.
But on the basis of what to make a request, in order to unambiguously select exactly the user who logged in?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2015-09-26
@maxpointn2point

Retrieving the User Object

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question