I have a Symfony2 application I'm working on that uses SSO and the FosUserBundle. However there is a FosUserBundle event listener which is triggered when a user logs in and therefore stops my SSO bundle from working.
Is there a way in my app/config/config.yml
that I can easily disable this specific FosUserBundle listener?
PS. The listener is FOS\UserBundle\EventListener\LastLoginListener::onSecurityInteractiveLogin
I'd say that it is the responsibility of the bundle to provide configuration for disabling some of its behaviour.
So, if it's not the case, make the changes (enabling by default the event listener) and send a PR :)
Here's some example of enabling/disabling through configuration: https://github.com/KnpLabs/KnpRadBundle/blob/develop/DependencyInjection/KnpRadExtension.php#L27-L57
With the according configuration: https://github.com/KnpLabs/KnpRadBundle/blob/develop/DependencyInjection/Configuration.php#L32-L38