Created service that updated GeoLite database when it is older than 7 days

This commit is contained in:
Alejandro Celaya
2019-04-14 10:49:54 +02:00
parent df40199134
commit b24511b7b5
3 changed files with 210 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\CLI\Util;
use Shlinkio\Shlink\CLI\Exception\GeolocationDbUpdateFailedException;
interface GeolocationDbUpdaterInterface
{
/**
* @throws GeolocationDbUpdateFailedException
*/
public function checkDbUpdate(callable $handleProgress = null): void;
}