We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9dc314a + 5f005a8 commit c48a0baCopy full SHA for c48a0ba
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