From 342d981e66097311d95c8619d69fe8b770a73992 Mon Sep 17 00:00:00 2001 From: Lartak Date: Sat, 28 Jul 2018 21:54:33 +0200 Subject: [PATCH] Change the old syntax of `$this->request->session()` to `$this->request->getSession()`. The new syntax. --- src/Controller/Traits/LinkSocialTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/Traits/LinkSocialTrait.php b/src/Controller/Traits/LinkSocialTrait.php index 9b10c960b..ff1b951fd 100644 --- a/src/Controller/Traits/LinkSocialTrait.php +++ b/src/Controller/Traits/LinkSocialTrait.php @@ -41,7 +41,7 @@ public function linkSocial($alias = null) } $authUrl = $provider->getAuthorizationUrl($temporaryCredentials); if (empty($temporaryCredentials)) { - $this->request->session()->write('SocialLink.oauth2state', $provider->getState()); + $this->request->getSession()->write('SocialLink.oauth2state', $provider->getState()); } return $this->redirect($authUrl); @@ -228,8 +228,8 @@ protected function _validateCallbackSocialLink() } $sessionKey = 'SocialLink.oauth2state'; - $oauth2state = $this->request->session()->read($sessionKey); - $this->request->session()->delete($sessionKey); + $oauth2state = $this->request->getSession()->read($sessionKey); + $this->request->getSession()->delete($sessionKey); $state = $queryParams['state']; return $oauth2state === $state;