File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1818use Geocoder \ProviderAggregator ;
1919use Geocoder \Query \GeocodeQuery ;
2020use Geocoder \Query \ReverseQuery ;
21+ use Illuminate \Log \Logger ;
2122use Illuminate \Support \Collection ;
2223use Illuminate \Support \Str ;
24+ use Psr \Log \LoggerAwareTrait ;
2325use ReflectionClass ;
2426
2527/**
@@ -246,11 +248,13 @@ protected function getProvidersFromConfiguration(Collection $providers) : array
246248 $ arguments = $ this ->getArguments ($ arguments , $ provider );
247249 $ reflection = new ReflectionClass ($ provider );
248250
249- if ($ provider === ' Geocoder\Provider\Chain\Chain ' ) {
251+ if ($ provider === " Geocoder\Provider\Chain\Chain " ) {
250252 $ chainProvider = $ reflection ->newInstance ($ arguments );
251253
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));
254258 }
255259
256260 return $ chainProvider ;
You can’t perform that action at this time.
0 commit comments