mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-23 05:33:06 +05:30
Minor formatting adjustment
This commit is contained in:
parent
73698e28d9
commit
ac818bd921
@ -103,6 +103,7 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
if ($privateKey instanceof CryptKey === false) {
|
||||
$privateKey = new CryptKey($privateKey);
|
||||
}
|
||||
|
||||
$this->privateKey = $privateKey;
|
||||
$this->encryptionKey = $encryptionKey;
|
||||
|
||||
@ -111,10 +112,13 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
} else {
|
||||
$responseTypePrototype = clone $responseTypePrototype;
|
||||
}
|
||||
|
||||
if ($responseTypePrototype instanceof AbstractResponseType) {
|
||||
$responseTypePrototype->setPrivateKey($this->privateKey);
|
||||
}
|
||||
|
||||
$responseTypePrototype->setEncryptionKey($this->encryptionKey);
|
||||
|
||||
$this->responseTypePrototype = $responseTypePrototype;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user