コード例 #1
0
ファイル: StoreApi.php プロジェクト: ClaudioThomas/shopware-4
 /**
  * Starts the client
  */
 protected function startClient()
 {
     $storeApiUrl = Shopware()->Plugins()->Backend()->StoreApi()->Config()->StoreApiUrl;
     if (empty($storeApiUrl)) {
         throw new Shopware_StoreApi_Exception_Exception('there is no store api url configured');
     }
     $this->client->setConfig($this->Config());
     $this->client->startClient($storeApiUrl);
 }
コード例 #2
0
ファイル: StoreApi.php プロジェクト: nhp/shopware-4
    /**
     * Starts the client
     */
    protected function startClient()
    {
        $storeApiUrl = Shopware()->Plugins()->Backend()->StoreApi()->Config()->StoreApiUrl;
        //@todo: Fix of the plugin configuration
//        $storeApiUrl = 'http://store.shopware-preview.de/StoreApi';
        if(empty($storeApiUrl)) {
            throw new Shopware_StoreApi_Exception_Exception('there is no store api url configured');
        }

        $this->client->startClient($storeApiUrl);
    }