This commit is contained in:
Philipp Kräutli 2013-08-19 16:09:48 +02:00
parent c6ecd83b9d
commit 62238b87bc
1 changed files with 4 additions and 4 deletions

View File

@ -60,17 +60,17 @@ class SwiftMailerHandler extends BaseSwiftMailerHandler
*/ */
private function flushMemorySpool() private function flushMemorySpool()
{ {
$transport = $this->mailer->getTransport(); $mailerTransport = $this->mailer->getTransport();
if (!$transport instanceof \Swift_Transport_SpoolTransport) { if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
return; return;
} }
$spool = $transport->getSpool(); $spool = $mailerTransport->getSpool();
if (!$spool instanceof \Swift_MemorySpool) { if (!$spool instanceof \Swift_MemorySpool) {
return; return;
} }
if (null == $this->transport) { if (null === $this->transport) {
throw new \Exception('No transport available to flush mail queue'); throw new \Exception('No transport available to flush mail queue');
} }