Beispiel #1
0
 /**
  * Clean up after sending the mail
  *
  * @param PostmanZendMailEngine $engine        	
  * @param unknown $startTime        	
  */
 private function postSend(PostmanMailEngine $engine, $startTime, PostmanOptions $options, PostmanModuleTransport $transport)
 {
     // save the transcript
     $this->transcript = $engine->getTranscript();
     // log the transcript
     if ($this->logger->isTrace()) {
         $this->logger->trace('Transcript:');
         $this->logger->trace($this->transcript);
     }
     // delete the semaphore
     if ($transport->isLockingRequired()) {
         PostmanUtils::unlock();
     }
     // stop the clock
     $endTime = microtime(true) * 1000;
     $this->totalTime = $endTime - $startTime;
 }
Beispiel #2
0
 /**
  * Clean up after sending the mail
  *
  * @param PostmanMailEngine $engine        	
  * @param unknown $startTime        	
  */
 private function postSend(PostmanMailEngine $engine, $startTime, PostmanOptions $options)
 {
     // save the transcript
     $this->transcript = $engine->getTranscript();
     // delete the semaphore
     if ($options->isAuthTypeOAuth2()) {
         PostmanUtils::unlock();
     }
     // stop the clock
     $endTime = microtime(true) * 1000;
     $this->totalTime = $endTime - $startTime;
 }