Compare commits
2 Commits
5b44e7508e
...
aba0ec3458
Author | SHA1 | Date | |
---|---|---|---|
|
aba0ec3458 | ||
|
c026762fdb |
@ -39,7 +39,7 @@ class Rest implements AdapterInterface
|
||||
|
||||
public function setup(array $configuration): void
|
||||
{
|
||||
$this->auth = AuthenticationEnum::from($configuration['auth'] ?? AuthenticationEnum::Basic->value);
|
||||
$this->auth = AuthenticationEnum::from($configuration['auth'] ?: AuthenticationEnum::Basic->value);
|
||||
$this->url = rtrim($configuration['url'], '/');
|
||||
|
||||
foreach([ 'username', 'password', 'token', 'headers', 'options' ] as $conf) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user