Added redirect_uri to API constructor

This commit is contained in:
aymm 2021-03-09 19:16:29 +00:00
parent 7ce7c3637d
commit 6f390be2bf

View File

@ -71,6 +71,7 @@ class APnutI
?string $client_id = null, ?string $client_id = null,
?string $needed_scope = null, ?string $needed_scope = null,
?string $app_name = null, ?string $app_name = null,
?string $redirect_uri = null,
?string $log_path = null ?string $log_path = null
) { ) {
$this->logger = empty($log_path) ? new NullLogger() : new Logger($this->app_name); $this->logger = empty($log_path) ? new NullLogger() : new Logger($this->app_name);
@ -96,6 +97,9 @@ class APnutI
if (!empty($needed_scope)) { if (!empty($needed_scope)) {
$this->needed_scope = $needed_scope; $this->needed_scope = $needed_scope;
} }
if (!empty($redirect_uri)) {
$this->redirect_uri = $redirect_uri;
}
if (!empty($app_name)) { if (!empty($app_name)) {
$this->app_name = $app_name; $this->app_name = $app_name;
} }