private function flushMemorySpool()
    {
        $mailerTransport = $this->mailer->getTransport();
        if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
            return;
        }

        $spool = $mailerTransport->getSpool();
        if (!$spool instanceof \Swift_MemorySpool) {
            return;
        }

        if (null === $this->transport) {
            throw new \Exception('No transport available to flush mail queue');
        }

        $spool->flushQueue($this->transport);
    }
private function flushMemorySpool()
    {
        $mailerTransport = $this->mailer->getTransport();
        if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
            return;
        }

        $spool = $mailerTransport->getSpool();
        if (!$spool instanceof \Swift_MemorySpool) {
            return;
        }

        if (null === $this->transport) {
            throw new \Exception('No transport available to flush mail queue');
        }

        $spool->flushQueue($this->transport);
    }
private function flushMemorySpool ( ) { $ mailerTransport = $ this -> mailer -> getTransport ( ) ; if ( ! $ mailerTransport instanceof \ Swift_Transport_SpoolTransport ) { return ; } $ spool = $ mailerTransport -> getSpool ( ) ; if ( ! $ spool instanceof \ Swift_MemorySpool ) { return ; } if ( null === $ this -> transport ) { throw new \ Exception ( 'No transport available to flush mail queue' ) ; } $ spool -> flushQueue ( $ this -> transport ) ; }
Flushes the mail queue if a memory spool is used.
Flushes the mail queue if a memory spool is used .