I found :
$user = $container->get('security.context')->getToken()->getUser();
however it does not work within my controller which is extending Controller
should I also extend my controller class with ContainerAware ???
Please hint me
Thanks
Luis
On Fri, Apr 15, 2011 at 8:06 PM, Luis Cordova <[email protected]> wrote:
> Hi
>
> I am trying to get the user object within my controller action but i am
> having a hard time finding the method to fetch current user
>
> If I use findUserByConfirmationToken($token) then where do I get the $token
> from?
> I don't want to bypass ACL checks so I need to find the correct way to
> fetch current user
>
> anyone please help or hint how can I do this, thanks!
>
> Luis
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en