From d10cc5040d3c5f7c3c0ea2440ac833997726f601 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 24 Feb 2014 16:50:19 +0000 Subject: [PATCH] Inject server into storage --- src/League/OAuth2/Server/ResourceServer.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/League/OAuth2/Server/ResourceServer.php b/src/League/OAuth2/Server/ResourceServer.php index 2f304541..bae49991 100644 --- a/src/League/OAuth2/Server/ResourceServer.php +++ b/src/League/OAuth2/Server/ResourceServer.php @@ -51,9 +51,16 @@ class ResourceServer extends AbstractServer ClientInterface $clientStorage, ScopeInterface $scopeStorage ) { + $sessionStorage->setServer($this); $this->setStorage('session', $sessionStorage); + + $accessTokenStorage->setServer($this); $this->setStorage('access_token', $accessTokenStorage); + + $clientStorage->setServer($this); $this->setStorage('client', $clientStorage); + + $scopeStorage->setServer($this); $this->setStorage('scope', $scopeStorage); return $this;