Answer the question
In order to leave comments, you need to log in
Need to write EmailExtension(DI) SYmfony3 correctly, what's wrong with my code?
Actually, you need to write 2 services on a symbol, one takes the swiftmailer to the constructor and sends letters through it, the second is the controller, which also takes this service to the constructor via DI and sends letters using it. My code: ideone.com/QDAWRf
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question