How can I get the user object from a service in Symfony2
- by pogo
My site is using a third party service for authentication as well as other bits of functionality so I have setup a service that does all the API calls for me and it's this service that I need to be able to access the user object.
I've tried injecting the security.context service into my API service but I get a ServiceCircularReferenceException…