/** * Get the authorization url and redirect to dropbox */ public function connectRequestAction() { $tokens = $this->dropbox->getOAuth()->getRequestToken(); $this->sessionStorageAdapter->store('dropboxTokens', $tokens); $this->sessionStorageAdapter->store('dropBoxConnectInProgress', true); $callBackURL = $this->uriBuilder->reset()->setCreateAbsoluteUri(TRUE)->uriFor('connectResponse', NULL, 'OAuth'); $authorizeURL = $this->dropbox->getOAuth()->getAuthorizeUrl(urldecode($callBackURL)); $this->redirectToUri($authorizeURL); }
/** * Persist the cached session data. * */ public function persist() { $this->persistObjectsToSession(); $this->sessionAdapter->store('pt_extbase.cached.session', $this->sessionData); }