/** * @inheritdoc */ public function init() { parent::init(); if ($this->client === null) { throw new InvalidConfigException('The "client" property must be set.'); } if (!$this->client instanceof SesClient) { $this->client = new SesClient($this->client); } }
/** * @inheritdoc */ public function init() { if (!isset($this->domain)) { throw new InvalidConfigException("Mailer::\$domain must be set to your Mailgun domain"); } if (!isset($this->apiKey)) { throw new InvalidConfigException("Mailer::\$apiKey must be set to your Mailgun api key"); } if (is_string($this->httpclient)) { $this->httpclient = Yii::$app->get($this->httpclient); } else { $this->httpclient = Instance::ensure($this->httpclient, Client::className()); } parent::init(); }
/** @inheritdoc */ public function init() { $this->_mandrill = new \Mandrill($this->_token); parent::init(); }