I am using Data-Dog/Auditbundle for AuditLogs in my symfony application.Also I have TokenAuthenticator as my guard for api's. But bundle's EventSubscriber is being called before TokenAuthenticator and hence
public function __construct(TokenStorageInterface $securityTokenStorage)
{
$this->securityTokenStorage = $securityTokenStorage;
}
this in EventSubscriber gives token as null and I am not able to getUser.