We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cecbcfd commit 5f005a8Copy full SHA for 5f005a8
src/ProviderAndDumperAggregator.php
@@ -247,7 +247,13 @@ protected function getProvidersFromConfiguration(Collection $providers) : array
247
$reflection = new ReflectionClass($provider);
248
249
if ($provider === 'Geocoder\Provider\Chain\Chain') {
250
- return $reflection->newInstance($arguments);
+ $chainProvider = $reflection->newInstance($arguments);
251
+
252
+ if (in_array(\Psr\Log\LoggerAwareTrait::class, class_uses($chainProvider)) && app(\Illuminate\Log\Logger::class) !== null) {
253
+ $chainProvider->setLogger(app(\Illuminate\Log\Logger::class));
254
+ }
255
256
+ return $chainProvider;
257
}
258
259
return $reflection->newInstanceArgs($arguments);
0 commit comments