You'd pass it to an event subscriber, not to an event listener. An event
subscriber can be built as a service, and can have dependencies.

See http://doctrine-orm.readthedocs.org/en/latest/reference/events.html

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 13 August 2015 at 14:10, Nima Sadjadi <[email protected]> wrote:

> Is it possible or not possible?
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to