/**
  * (non-PHPdoc)
  *
  * @see PostmanAbstractModuleTransport::validateTransportConfiguration()
  */
 protected function validateTransportConfiguration()
 {
     $messages = parent::validateTransportConfiguration();
     $apiKey = $this->options->getMandrillApiKey();
     if (empty($apiKey)) {
         array_push($messages, __('API Key can not be empty', Postman::TEXT_DOMAIN) . '.');
         $this->setNotConfiguredAndReady();
     }
     if (!$this->isSenderConfigured()) {
         array_push($messages, __('Message From Address can not be empty', Postman::TEXT_DOMAIN) . '.');
         $this->setNotConfiguredAndReady();
     }
     return $messages;
 }
 /**
  * (non-PHPdoc)
  *
  * @see PostmanTransport::getMisconfigurationMessage()
  */
 protected function validateTransportConfiguration()
 {
     parent::validateTransportConfiguration();
     $messages = parent::validateTransportConfiguration();
     if (!$this->isSenderConfigured()) {
         array_push($messages, __('Message From Address can not be empty', Postman::TEXT_DOMAIN) . '.');
         $this->setNotConfiguredAndReady();
     }
     if ($this->getAuthenticationType() == PostmanOptions::AUTHENTICATION_TYPE_OAUTH2) {
         if (!$this->isOAuth2ClientIdAndClientSecretConfigured()) {
             /* translators: %1$s is the Client ID label, and %2$s is the Client Secret label (e.g. Warning: OAuth 2.0 authentication requires an OAuth 2.0-capable Outgoing Mail Server, Sender Email Address, Client ID, and Client Secret.) */
             array_push($messages, sprintf(__('OAuth 2.0 authentication requires a %1$s and %2$s.', Postman::TEXT_DOMAIN), $this->getScribe()->getClientIdLabel(), $this->getScribe()->getClientSecretLabel()));
             $this->setNotConfiguredAndReady();
         }
     }
     return $messages;
 }