diff --git a/src/Command/MeilisearchIndexCommand.php b/src/Command/MeilisearchIndexCommand.php index 39f61b4..4753633 100644 --- a/src/Command/MeilisearchIndexCommand.php +++ b/src/Command/MeilisearchIndexCommand.php @@ -9,15 +9,19 @@ use Symfony\Component\Console\Output\OutputInterface; class MeilisearchIndexCommand extends Command { - protected static $defaultName = 'meilisearch:index'; - protected static $defaultDescription = 'Rebuild Meilisearch index from Contao search tables'; - public function __construct( private readonly MeilisearchIndexService $indexService ) { parent::__construct(); } + protected function configure(): void + { + $this + ->setName('meilisearch:index') + ->setDescription('Rebuild Meilisearch index from Contao search tables'); + } + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('Meilisearch index started');