I'm developing web application with symfony and also using EzPlatform as Cms for the same project. Would like to get the current logged in user from EzPlatform to my symfony controller using php.
Any ideas how to do that?
I'm developing web application with symfony and also using EzPlatform as Cms for the same project. Would like to get the current logged in user from EzPlatform to my symfony controller using php.
Any ideas how to do that?
If you need the Symfony user, you can get it from token storage service (
@security.token_storage):Once you have the Symfony user, you can get eZ Platform user with:
There is also a method called
getCurrentUseron eZ repository (@ezpublish.api.repositoryservice) with which you can get the current user directly: