mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-11 10:39:57 +03:00
Set chain IP resolver as the default IP resolver
This commit is contained in:
parent
9a0f9207be
commit
4a383cecaf
2 changed files with 4 additions and 2 deletions
|
@ -83,7 +83,7 @@ class ProcessVisitsCommand extends Command
|
||||||
|
|
||||||
$io->writeln(sprintf(
|
$io->writeln(sprintf(
|
||||||
' [<info>' . $this->translator->translate('Address located at "%s"') . '</info>]',
|
' [<info>' . $this->translator->translate('Address located at "%s"') . '</info>]',
|
||||||
$location->getCityName()
|
$location->getCountryName()
|
||||||
));
|
));
|
||||||
} catch (WrongIpException $e) {
|
} catch (WrongIpException $e) {
|
||||||
$io->writeln(
|
$io->writeln(
|
||||||
|
|
|
@ -44,10 +44,12 @@ return [
|
||||||
'em' => EntityManager::class,
|
'em' => EntityManager::class,
|
||||||
'httpClient' => GuzzleClient::class,
|
'httpClient' => GuzzleClient::class,
|
||||||
'translator' => Translator::class,
|
'translator' => Translator::class,
|
||||||
|
|
||||||
'logger' => LoggerInterface::class,
|
'logger' => LoggerInterface::class,
|
||||||
Logger::class => 'Logger_Shlink',
|
Logger::class => 'Logger_Shlink',
|
||||||
LoggerInterface::class => 'Logger_Shlink',
|
LoggerInterface::class => 'Logger_Shlink',
|
||||||
IpGeolocation\IpLocationResolverInterface::class => IpGeolocation\GeoLite2LocationResolver::class,
|
|
||||||
|
IpGeolocation\IpLocationResolverInterface::class => IpGeolocation\ChainIpLocationResolver::class,
|
||||||
],
|
],
|
||||||
'abstract_factories' => [
|
'abstract_factories' => [
|
||||||
Factory\DottedAccessConfigAbstractFactory::class,
|
Factory\DottedAccessConfigAbstractFactory::class,
|
||||||
|
|
Loading…
Add table
Reference in a new issue