protected function registerSwiftMailer() { $this->mailer = $this->getDI()->get('\\Swift_Mailer', [$this->transport]); }