mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 13:39:48 +05:30
Inject server into storage
This commit is contained in:
parent
d314c1efd9
commit
d10cc5040d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user