From 86a37ba938927317635b7719f2444707a799d684 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Mon, 11 Jul 2022 09:15:13 -0400 Subject: [PATCH] use AsCommand instead of deprecated --- Bundle/CoreBundle/src/Command/IndexEntityCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bundle/CoreBundle/src/Command/IndexEntityCommand.php b/Bundle/CoreBundle/src/Command/IndexEntityCommand.php index 92832a0..5d9891e 100644 --- a/Bundle/CoreBundle/src/Command/IndexEntityCommand.php +++ b/Bundle/CoreBundle/src/Command/IndexEntityCommand.php @@ -2,6 +2,7 @@ namespace Umbrella\CoreBundle\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -9,10 +10,9 @@ use Symfony\Component\Console\Style\SymfonyStyle; use Umbrella\CoreBundle\Search\EntityIndexer; +#[AsCommand('umbrella:index:entity', 'Reindex #[searchable] entity.')] class IndexEntityCommand extends Command { - protected static $defaultName = 'umbrella:index:entity'; - protected static $defaultDescription = 'Reindex #[searchable] entity.'; private ?SymfonyStyle $io = null; private ?string $entityClass = null;