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()
{
$transport = $this->mailer->getTransport();
if (!$transport instanceof \Swift_Transport_SpoolTransport) {
$mailerTransport = $this->mailer->getTransport();
if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
return;
}
$spool = $transport->getSpool();
$spool = $mailerTransport->getSpool();
if (!$spool instanceof \Swift_MemorySpool) {
return;
}
if (null == $this->transport) {
if (null === $this->transport) {
throw new \Exception('No transport available to flush mail queue');
}