File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 18
18
use Geocoder \ProviderAggregator ;
19
19
use Geocoder \Query \GeocodeQuery ;
20
20
use Geocoder \Query \ReverseQuery ;
21
+ use Illuminate \Log \Logger ;
21
22
use Illuminate \Support \Collection ;
22
23
use Illuminate \Support \Str ;
24
+ use Psr \Log \LoggerAwareTrait ;
23
25
use ReflectionClass ;
24
26
25
27
/**
@@ -246,11 +248,13 @@ protected function getProvidersFromConfiguration(Collection $providers) : array
246
248
$ arguments = $ this ->getArguments ($ arguments , $ provider );
247
249
$ reflection = new ReflectionClass ($ provider );
248
250
249
- if ($ provider === ' Geocoder\Provider\Chain\Chain ' ) {
251
+ if ($ provider === " Geocoder\Provider\Chain\Chain " ) {
250
252
$ chainProvider = $ reflection ->newInstance ($ arguments );
251
253
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
+ if (in_array (LoggerAwareTrait::class, class_uses ($ chainProvider ))
255
+ && app (Logger::class) !== null
256
+ ) {
257
+ $ chainProvider ->setLogger (app (Logger::class));
254
258
}
255
259
256
260
return $ chainProvider ;
You can’t perform that action at this time.
0 commit comments