I am doing a project in symfony 3 and I am automating the sending of emails, for which I created the command in a folder within the bundle and when I send the mail view rendering, I get the following error: Fatal error: Call to undefined method appDevDebugProjectContainer :: renderView ()
I was reading that in commands and services you should only use render but it generates this error: Fatal Error: Call to undefined method MailBundle \ Command \ SendMailCommand :: render ()
Thanks for your help