Updated GeolocationDbUpdater to always use a local lock even if redis config is provided

This commit is contained in:
Alejandro Celaya
2019-11-17 11:09:37 +01:00
parent 7c1e40be88
commit d030fd1aa6
3 changed files with 11 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ return [
],
ConfigAbstractFactory::class => [
GeolocationDbUpdater::class => [DbUpdater::class, Reader::class, Locker::class],
GeolocationDbUpdater::class => [DbUpdater::class, Reader::class, 'Shlinkio\Shlink\LocalLockFactory'],
Command\ShortUrl\GenerateShortUrlCommand::class => [Service\UrlShortener::class, 'config.url_shortener.domain'],
Command\ShortUrl\ResolveUrlCommand::class => [Service\UrlShortener::class],