Finalisation du module PurgeFakeCustomer

This commit is contained in:
2021-01-13 17:11:31 +01:00
parent 4845682d59
commit b704cbdaf6
5 changed files with 1406 additions and 18121 deletions

View File

@@ -14,6 +14,14 @@ use Thelia\Model\ConfigQuery;
class FakeCustomerPurge extends ContainerAwareCommand
{
protected function configure()
{
$this
->setName("fakecustomers:purge")
->setDescription("Purge all fake customers")
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln(
@@ -29,6 +37,6 @@ class FakeCustomerPurge extends ContainerAwareCommand
$output->writeln("<$level>$status</$level>");
}
$output->writeln(sprintf("<info>%d fake customers deleteddàçp</info>", $event->getDeletedCount()));
$output->writeln(sprintf("<info>%d fake customers deleted (Ids : %s)</info>", $event->getDeletedCount(), $event->getDeletedList()));
}
}