Moved initialization of the io object in LocateVisitsCommand to the initialize method

This commit is contained in:
Alejandro Celaya 2020-03-28 10:37:41 +01:00
parent 2a30afbe7d
commit 53ba58d7e9

View file

@ -73,9 +73,13 @@ class LocateVisitsCommand extends AbstractLockedCommand implements VisitGeolocat
);
}
protected function interact(InputInterface $input, OutputInterface $output): void
protected function initialize(InputInterface $input, OutputInterface $output): void
{
$this->io = new SymfonyStyle($input, $output);
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
$retry = $input->getOption('retry');
$all = $input->getOption('all');