diff --git a/ux.symfony.com/src/Command/LoadDataCommand.php b/ux.symfony.com/src/Command/LoadDataCommand.php index b27a8e7139d..f3d85c6b920 100644 --- a/ux.symfony.com/src/Command/LoadDataCommand.php +++ b/ux.symfony.com/src/Command/LoadDataCommand.php @@ -22,6 +22,7 @@ use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Helper\ProgressIndicator; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; @@ -38,6 +39,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); + $progressIndicator = new ProgressIndicator($output, finishedIndicatorValue: '✅'); + $progressIndicator->start("Loading data"); $this->clearEntity(Chat::class, $io); $this->clearEntity(TodoItem::class, $io); $this->clearEntity(TodoList::class, $io); @@ -45,6 +48,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->clearEntity(Invoice::class, $io); $this->growFood($io); $this->manufactureProducts($io); + $progressIndicator->finish('Finished'); return Command::SUCCESS; }