mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +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,
|
ClientInterface $clientStorage,
|
||||||
ScopeInterface $scopeStorage
|
ScopeInterface $scopeStorage
|
||||||
) {
|
) {
|
||||||
|
$sessionStorage->setServer($this);
|
||||||
$this->setStorage('session', $sessionStorage);
|
$this->setStorage('session', $sessionStorage);
|
||||||
|
|
||||||
|
$accessTokenStorage->setServer($this);
|
||||||
$this->setStorage('access_token', $accessTokenStorage);
|
$this->setStorage('access_token', $accessTokenStorage);
|
||||||
|
|
||||||
|
$clientStorage->setServer($this);
|
||||||
$this->setStorage('client', $clientStorage);
|
$this->setStorage('client', $clientStorage);
|
||||||
|
|
||||||
|
$scopeStorage->setServer($this);
|
||||||
$this->setStorage('scope', $scopeStorage);
|
$this->setStorage('scope', $scopeStorage);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user