From ef60060a20c53b13eb802d6d6477b7bd0893c027 Mon Sep 17 00:00:00 2001 From: Tri Pham Date: Fri, 14 Dec 2018 11:57:05 +0700 Subject: [PATCH] Remove unused code --- Command/DebugCommand.php | 1 - Command/SendEmailCommand.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Command/DebugCommand.php b/Command/DebugCommand.php index 16365bfd..510a22fd 100644 --- a/Command/DebugCommand.php +++ b/Command/DebugCommand.php @@ -71,7 +71,6 @@ protected function outputMailers($routes = null) $mailers = $this->getContainer()->getParameter('swiftmailer.mailers'); foreach ($mailers as $name => $mailer) { - $mailer = $this->getContainer()->get($mailer); $transport = $this->getContainer()->getParameter(sprintf('swiftmailer.mailer.%s.transport.name', $name)); $spool = $this->getContainer()->getParameter(sprintf('swiftmailer.mailer.%s.spool.enabled', $name)) ? 'YES' : 'NO'; $delivery = $this->getContainer()->getParameter(sprintf('swiftmailer.mailer.%s.delivery.enabled', $name)) ? 'YES' : 'NO'; diff --git a/Command/SendEmailCommand.php b/Command/SendEmailCommand.php index b76568e6..e8c3e638 100644 --- a/Command/SendEmailCommand.php +++ b/Command/SendEmailCommand.php @@ -89,7 +89,7 @@ private function processMailer($name, InputInterface $input, OutputInterface $ou } } - private function recoverSpool($name, \Swift_Transport $transport, InputInterface $input, OutputInterface $output) + private function recoverSpool($name, \Swift_Transport $transport, InputInterface $input) { if ($transport instanceof \Swift_Transport_SpoolTransport) { $spool = $transport->getSpool();