mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Fix bc breaking change
This commit is contained in:
parent
f2cd3646ff
commit
f1454cde36
@ -114,12 +114,6 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
$responseType = clone $responseType;
|
||||
}
|
||||
|
||||
if ($responseType instanceof AbstractResponseType) {
|
||||
$responseType->setPrivateKey($this->privateKey);
|
||||
}
|
||||
|
||||
$responseType->setEncryptionKey($this->encryptionKey);
|
||||
|
||||
$this->responseType = $responseType;
|
||||
}
|
||||
|
||||
@ -219,7 +213,14 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
*/
|
||||
protected function getResponseType()
|
||||
{
|
||||
return clone $this->responseType;
|
||||
$responseType = clone $this->responseType;
|
||||
if ($responseType instanceof AbstractResponseType) {
|
||||
$responseType->setPrivateKey($this->privateKey);
|
||||
}
|
||||
|
||||
$responseType->setEncryptionKey($this->encryptionKey);
|
||||
|
||||
return $responseType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user