mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
If $options is not equal to null then overwrite default options
This commit is contained in:
parent
f7d200faec
commit
a823096b44
@ -41,6 +41,9 @@ class Server
|
|||||||
public function __construct(array $options)
|
public function __construct(array $options)
|
||||||
{
|
{
|
||||||
$this->options = array_merge($this->config, $options);
|
$this->options = array_merge($this->config, $options);
|
||||||
|
if ($options !== null) {
|
||||||
|
$this->options = array_merge($this->config, $options);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerDbAbstractor(object $db)
|
public function registerDbAbstractor(object $db)
|
||||||
|
Loading…
Reference in New Issue
Block a user