Пример #1
0
 /**
  * Get a MauticMessage/Swift_Message instance
  *
  * @return bool|MauticMessage
  */
 public function getMessageInstance()
 {
     try {
         $message = $this->tokenizationSupported ? MauticMessage::newInstance() : \Swift_Message::newInstance();
         return $message;
     } catch (\Exception $e) {
         $this->logError($e);
         return false;
     }
 }