/** * Set a few dependencies on the mailer instance. * * @param \Mail\Mailer $mailer * @param \Foundation\Application $app * @return void */ protected function setMailerDependencies($mailer, $app) { $mailer->setContainer($app); if ($app->bound('log')) { $mailer->setLogger($app['log']); } }