Skip to content

Commit

Permalink
Merge pull request #332 from leon38/fix-dependency-injection
Browse files Browse the repository at this point in the history
Fix error on undefined variable when a client is named default in config
  • Loading branch information
dbu committed Apr 12, 2019
2 parents 8bcd1b1 + aa3fe5e commit 1fddc94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DependencyInjection/HttplugExtension.php
Expand Up @@ -127,6 +127,7 @@ private function configureClients(ContainerBuilder $container, array $config)
$default = $first;
} else {
$default = 'default';
$serviceId = 'httplug.client.'.$default;
}

// Autowiring alias for special clients, if they are enabled on the default client
Expand Down

0 comments on commit 1fddc94

Please sign in to comment.