Browse Source

Correction commande php7

François Drouhard 3 years ago
parent
commit
0b79ccec07
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/Command/UpdateOptionsCommand.php

+ 2 - 4
src/Command/UpdateOptionsCommand.php

@@ -13,10 +13,6 @@ use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Style\SymfonyStyle;
 
-#[AsCommand(
-    name: 'app:update:options',
-    description: 'Commande pour rattacher une entité Profile aux users existants',
-)]
 class UpdateOptionsCommand extends Command
 {
     protected $em;
@@ -32,6 +28,8 @@ class UpdateOptionsCommand extends Command
     protected function configure(): void
     {
         $this
+            ->setName('app:update:options')
+            ->setDescription('Commande pour rattacher une entité Profile aux users existants')
             //->addArgument('arg1', InputArgument::OPTIONAL, 'Argument description')
             ->addOption('force', null, InputOption::VALUE_NONE, 'Forcer la création des profils utilisateur')
         ;