Warning: Undefined variable $namespace in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 3
;
Warning: Undefined variable $use_statements in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 5
#[AsCommand( name: '
Warning: Undefined variable $command_name in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 8
', description: 'Add a short description for your command', )] class
Warning: Undefined variable $class_name in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 11
extends Command { public function __construct() { parent::__construct(); } protected function configure(): void { $this
Warning: Undefined variable $set_description in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 21
->addArgument('arg1', InputArgument::OPTIONAL, 'Argument description') ->addOption('option1', null, InputOption::VALUE_NONE, 'Option description') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $arg1 = $input->getArgument('arg1'); if ($arg1) { $io->note(sprintf('You passed an argument: %s', $arg1)); } if ($input->getOption('option1')) { // ... } $io->success('You have a new command! Now make it your own! Pass --help to see your options.'); return Command::SUCCESS; } }