( ! ) Warning: Undefined variable $namespace in /home/homes/thomastestaud/sites/thomastestaud.fr_2.0/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 3 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0114 | 359152 | {main}( ) | .../Command.tpl.php:0 |
;
( ! ) Warning: Undefined variable $use_statements in /home/homes/thomastestaud/sites/thomastestaud.fr_2.0/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 5 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0114 | 359152 | {main}( ) | .../Command.tpl.php:0 |
#[AsCommand(
name: '
( ! ) Warning: Undefined variable $command_name in /home/homes/thomastestaud/sites/thomastestaud.fr_2.0/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 8 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0114 | 359152 | {main}( ) | .../Command.tpl.php:0 |
',
description: 'Add a short description for your command',
)]
class
( ! ) Warning: Undefined variable $class_name in /home/homes/thomastestaud/sites/thomastestaud.fr_2.0/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 11 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0114 | 359152 | {main}( ) | .../Command.tpl.php:0 |
extends Command
{
protected function configure(): void
{
$this
( ! ) Warning: Undefined variable $set_description in /home/homes/thomastestaud/sites/thomastestaud.fr_2.0/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 16 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0114 | 359152 | {main}( ) | .../Command.tpl.php:0 |
->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;
}
}