/** * @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; }