How I Fixed: \Swift_Message::newInstance() not found

I had a recent requirement to overwrite the MailerĀ  class provided as part of FOSUserBundle. There’s a protected method in this class as follows: /** * @param string $renderedTemplate * @param array|string $fromEmail * @param array|string $toEmail */ protected function sendEmailMessage($renderedTemplate, $fromEmail, $toEmail) { // Render the email, use the first line as the subject, … Continue reading How I Fixed: \Swift_Message::newInstance() not found