示例#1
0
文件: Store.php 项目: nhp/shopware-4
 /**
  * @return null|Shopware_StoreApi_Models_Auth
  */
 public function getIdentity()
 {
     if (!$this->identity instanceof Shopware_StoreApi_Models_Auth) {
         $this->identity = new Shopware_StoreApi_Models_Auth();
         $this->identity->setShopwareId(Shopware()->BackendSession()->pluginManagerShopwareId);
         $this->identity->setToken(Shopware()->BackendSession()->pluginManagerAccountToken);
         $this->identity->setAccountUrl(Shopware()->BackendSession()->pluginManagerAccountUrl);
     }
     return $this->identity;
 }