public function __construct(ChannelManager $chm) { $this->chm = $chm; $this->sm = $chm->getServiceLocator(); $this->client = new Client(); $this->client->setMethod(Request::METHOD_POST)->setEncType('text/xml')->setAdapter(new Client\Adapter\Curl())->setOptions(['curloptions' => [CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSLVERSION => 1]]); }