Compare commits
No commits in common. "aba0ec34581330a759086806afd7c5eb1e05fe90" and "5b44e7508ea61f2fe693cde2a6f8e36e6202329f" have entirely different histories.
aba0ec3458
...
5b44e7508e
@ -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