S
S
sl1m_dogg2016-02-18 16:09:58
symfony
sl1m_dogg, 2016-02-18 16:09:58

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

1 answer(s)
B
BoShurik, 2016-02-18
@BoShurik

23 line.
You are instantiating ContainerBuilderinstead of using the one passed as a function parameterload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question