How to inject Symfony Security into Doctrine Event Listener without Circular Reference Exception

0 Flares Twitter 0 Facebook 0 LinkedIn 0 0 Flares ×

As of Symfony 2.6, you can inject the security.token_storage into your listener. This service will contain the token as used by the SecurityContext in <=2.5.




Web Deviloper