protected function setMailerDependencies($mailer, $app)
    {
        $mailer->setContainer($app);

        if ($app->bound('log')) {
            $mailer->setLogger($app['log']);
        }

        if ($app->bound('queue')) {
            $mailer->setQueue($app['queue']);
        }
    }