Hi Marco :) I try it...problem is that i wan't to put a factory between the LazyFactory and the Service (i search the documentation but i did'nt get it...maybe low on coffee ? ;).
I use the following configurstion...but wait...this is doctrine...maybe i can contact you in another space ? Thanks. CU, Kai. Am Donnerstag, 8. Juni 2017 19:54:11 UTC+2 schrieb Kai Szymanski: > > Ha! > > A very good hint, thanks a lot...i read the article and yes, this works :) > > Best regards, > Kai. > > Am Donnerstag, 8. Juni 2017 19:09:49 UTC+2 schrieb Marco Pivetta: >> >> 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.
