solved it

I had to do $this->container and not $this->$container
or just $container ...

the problem is that my IDE phpstorm in this case can't track the php
dependencies so i am unaware what variables are there...

Thanks though

On Fri, Apr 15, 2011 at 8:36 PM, Luis Cordova <cordo...@gmail.com> wrote:

> 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 <cordo...@gmail.com> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to