/** * Prepare client configuration * @return Client * @throws ConfigurationException */ private function getClient() { $login = $this->getParam('login'); $password = $this->getParam('password'); $sender = $this->getParam('sender'); if (empty($sender) || (empty($login) || empty($password))) { throw new ConfigurationException(__CLASS__ . ' is not configured properly. Please set "sender" and "login" and "password" parameters properly.'); } return Sender::create($login, md5($password), $sender); }