/** * Get client * @return IClient */ protected function getClient() { if (!$this->client) { $clientId = $this->input->getParameter(self::CLIENT_ID_KEY); $clientSecret = $this->input->getParameter(self::CLIENT_SECRET_KEY); $this->client = $this->clientStorage->getClient($clientId, $clientSecret); } return $this->client; }
/** * On presenter startup */ protected function startup() { parent::startup(); $this->client = $this->clientStorage->getClient($this->getParameter(GrantType::CLIENT_ID_KEY), $this->getParameter(GrantType::CLIENT_SECRET_KEY)); }