Updated commands

This commit is contained in:
Alejandro Celaya
2019-04-14 09:10:00 +02:00
parent fdbe93f0fb
commit feb67e76f0
5 changed files with 14 additions and 11 deletions

View File

@@ -20,9 +20,10 @@ use Symfony\Component\Lock\Factory as Locker;
use function sprintf;
class ProcessVisitsCommand extends Command
class LocateVisitsCommand extends Command
{
public const NAME = 'visit:process';
public const NAME = 'visit:locate';
public const ALIASES = ['visit:process'];
/** @var VisitServiceInterface */
private $visitService;
@@ -48,7 +49,8 @@ class ProcessVisitsCommand extends Command
{
$this
->setName(self::NAME)
->setDescription('Processes visits where location is not set yet');
->setAliases(self::ALIASES)
->setDescription('Resolves visits origin locations.');
}
protected function execute(InputInterface $input, OutputInterface $output): ?int

View File

@@ -15,6 +15,7 @@ use Symfony\Component\Console\Style\SymfonyStyle;
use function sprintf;
/** @deprecated */
class UpdateDbCommand extends Command
{
public const NAME = 'visit:update-db';
@@ -32,7 +33,7 @@ class UpdateDbCommand extends Command
{
$this
->setName(self::NAME)
->setDescription('Updates the GeoLite2 database file used to geolocate IP addresses')
->setDescription('[DEPRECATED] Updates the GeoLite2 database file used to geolocate IP addresses')
->setHelp(
'The GeoLite2 database is updated first Tuesday every month, so this command should be ideally run '
. 'every first Wednesday'