mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Remove setting default scope in the constructor
This commit is contained in:
parent
1161ceda0d
commit
a49f6ff80d
@ -73,7 +73,7 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $defaultScope;
|
private $defaultScope = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* New server instance.
|
* New server instance.
|
||||||
@ -83,7 +83,6 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
* @param ScopeRepositoryInterface $scopeRepository
|
* @param ScopeRepositoryInterface $scopeRepository
|
||||||
* @param CryptKey|string $privateKey
|
* @param CryptKey|string $privateKey
|
||||||
* @param string $encryptionKey
|
* @param string $encryptionKey
|
||||||
* @param null|string $defaultScope
|
|
||||||
* @param null|ResponseTypeInterface $responseType
|
* @param null|ResponseTypeInterface $responseType
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
@ -92,7 +91,6 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
ScopeRepositoryInterface $scopeRepository,
|
ScopeRepositoryInterface $scopeRepository,
|
||||||
$privateKey,
|
$privateKey,
|
||||||
$encryptionKey,
|
$encryptionKey,
|
||||||
$defaultScope = null,
|
|
||||||
ResponseTypeInterface $responseType = null
|
ResponseTypeInterface $responseType = null
|
||||||
) {
|
) {
|
||||||
$this->clientRepository = $clientRepository;
|
$this->clientRepository = $clientRepository;
|
||||||
@ -103,9 +101,6 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
$privateKey = new CryptKey($privateKey);
|
$privateKey = new CryptKey($privateKey);
|
||||||
}
|
}
|
||||||
$this->privateKey = $privateKey;
|
$this->privateKey = $privateKey;
|
||||||
|
|
||||||
$this->defaultScope = $defaultScope;
|
|
||||||
|
|
||||||
$this->encryptionKey = $encryptionKey;
|
$this->encryptionKey = $encryptionKey;
|
||||||
$this->responseType = $responseType;
|
$this->responseType = $responseType;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user