Skip to content

Commit

Permalink
Merge pull request #8 from brzuchal/fix-skipped-base_uri
Browse files Browse the repository at this point in the history
Fix skipped base_uri param
  • Loading branch information
brzuchal authored Nov 27, 2023
2 parents e41ccba + 6c8fe3f commit b2e16dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestClientBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function loadExtension(array $config, ContainerConfigurator $container, C
}

$baseUriParam = $id . '.base_uri';
$container->parameters()->set($baseUriParam, $values['base_uri']);
$container->parameters()->set($baseUriParam, $values['base_uri'] ?? null);
$httpClient = ! empty($values['http_client']) ? new Reference($values['http_client']) : null;
$serializer = ! empty($values['serializer']) ? new Reference($values['serializer']) : null;
$clientService = $container->services()->set($id, RestClientInterface::class);
Expand Down

0 comments on commit b2e16dd

Please sign in to comment.