In Symfony 2.8/3.0, with our fancy new security components, how do I get the currently logged User (i.e. FOSUser) object in a service without>
User
From Symfony 3.3, from a Controller only, according this blog post: https://symfony.com/blog/new-in-symfony-3-2-user-value-resolver-for-controllers
Symfony 3.3
It's easy as:
use Symfony\Component\Security\Core\User\UserInterface public function indexAction(UserInterface $user) {...}