/** * Retrieve storage client for this stream type * * @param string $path * @return Zend_Service_WindowsAzure_Storage_Blob */ protected function _getStorageClient($path = '') { if (is_null($this->_storageClient)) { $url = explode(':', $path); if (!$url) { throw new Zend_Service_WindowsAzure_Exception('Could not parse path "' . $path . '".'); } $this->_storageClient = Zend_Service_WindowsAzure_Storage_Blob::getWrapperClient($url[0]); if (!$this->_storageClient) { throw new Zend_Service_WindowsAzure_Exception('No storage client registered for stream type "' . $url[0] . '://".'); } } return $this->_storageClient; }