protected function doList() { // TODO sign the state with HMAC $state = json_encode(['userId' => $this->authenticationHelper->getLoggedInUserId()]); $this->setToView(['stores' => $this->getStoreBo()->getList($this->authenticationHelper->getLoggedInUserId()), 'connectUrl' => DiHelper::getInstance()->getFactory()->getOAuth()->getAuthorisationRedirectUrl($state)]); return new StoreListTemplate('stores', 'connectUrl'); }
/** * Returns the current domain prefix * * @return string */ protected function getDomainPrefix() { return DiHelper::getInstance()->getDomainPrefix(); }
public function testGetInstance() { $this->testInit(); $this->assertInstanceOf(DiHelper::class, DiHelper::getInstance(), 'Invalid return value for DiHelper::getInstance()'); }
/** * Returns an instance of OAuth. * * @return OAuth */ protected function getOAuth() { return DiHelper::getInstance()->getFactory()->getOAuth(); }