Skip to content

Commit

Permalink
use AsCommand instead of deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman committed Jul 11, 2022
1 parent 6b424d2 commit 86a37ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bundle/CoreBundle/src/Command/IndexEntityCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

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;
use Symfony\Component\Console\Output\OutputInterface;
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;
Expand Down

0 comments on commit 86a37ba

Please sign in to comment.