Inject server into storage

This commit is contained in:
Alex Bilbie 2014-02-24 16:50:19 +00:00
parent d314c1efd9
commit d10cc5040d

View File

@ -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;