Ah, I see... That's a bit harder to do. My suggestion is to mark the services injected into your listener as "lazy" (see https://zendframework.github.io/zend-servicemanager/lazy-services/ and https://symfony.com/doc/current/service_container/lazy_services.html ): this will prevent the DI from crashing at initialization.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Thu, Jun 8, 2017 at 4:16 PM, Kai Szymanski <[email protected]> wrote: > Hi, > > > EventSubsriberA use Mailserver - max, Nested Function call (because of > getting the EntityManager...init Subscriper -> Mailservers get > Entitymanager -> Init Subscriper a.s.o.) > > Mean: MailService ;) > > CU, > Kai. > > -- > 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 https://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 https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
