title: Register Doctrine2 entity listener as service in Symfony2
body: <p>For the context, I use Symfony 2.4 &amp; Doctrine 2.4. </p>
  
  <p>I'm currently trying to move some logic inside doctrine entity listeners. For now, I have just used the <code>@EntityListeners</code> annotation in order to register my listeners on my entities as it does not need external dependencies. But now, I would like to inject services into my entity listeners though the Symfony2 container. As this feature is quite new, there is not related doc explaining if it is first possible &amp; second, how it can be done.</p>
  
  <p>Thanks!</p>