How to create custom event in symfony2
===

I want to create custom events called `user_logged` so that i can attach my listeners to those events.

I want to execute few functions whenever user has logged in.




