Set chain IP resolver as the default IP resolver

This commit is contained in:
Alejandro Celaya 2018-11-11 19:04:59 +01:00
parent 9a0f9207be
commit 4a383cecaf
2 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class ProcessVisitsCommand extends Command
$io->writeln(sprintf(
' [<info>' . $this->translator->translate('Address located at "%s"') . '</info>]',
$location->getCityName()
$location->getCountryName()
));
} catch (WrongIpException $e) {
$io->writeln(

View File

@ -44,10 +44,12 @@ return [
'em' => EntityManager::class,
'httpClient' => GuzzleClient::class,
'translator' => Translator::class,
'logger' => LoggerInterface::class,
Logger::class => 'Logger_Shlink',
LoggerInterface::class => 'Logger_Shlink',
IpGeolocation\IpLocationResolverInterface::class => IpGeolocation\GeoLite2LocationResolver::class,
IpGeolocation\IpLocationResolverInterface::class => IpGeolocation\ChainIpLocationResolver::class,
],
'abstract_factories' => [
Factory\DottedAccessConfigAbstractFactory::class,