Hi, thnaks for you answer...but....
MailService - Use Doctrine to save Mails to Database (for latefr sending). Use EntityManager ControllerA use Mailservice to send Emails - Works EventSubsriberA use Mailserver - max, Nested Function call (because of getting the EntityManager...init Subscriper -> Mailservers get Entitymanager -> Init Subscriper a.s.o.) I use it with Zend. Best regards, Kai. Am Donnerstag, 8. Juni 2017 14:27:57 UTC+2 schrieb Marco Pivetta: > > Heya, > > The object manager is usually given by the event being fired, so you don't > need to inject it. > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > On Thu, Jun 8, 2017 at 1:12 PM, Kai Szymanski <[email protected] > <javascript:>> wrote: > >> Hi, >> >> sound funny, i know :) >> >> But: I use the Zend Framework 3 with Doctrine and have a Service that >> needs the Entitymanager ($containber->get('doctrine...."). Now i wan't to >> use the Service in a EventSubscruber. >> >> problem: I get a "max nested function" error because it seems that every >> ->get('doctrinemanager') initialize the subscribers, the subscribers >> initialize the Service, the service....and so on. >> >> Exists there a solution ? >> >> Thanks :) >> >> Best regards, >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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.
