( ! ) Warning: Undefined variable $namespace in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 3 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
;
( ! ) Warning: Undefined variable $use_attributes in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 5 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
( ! ) Warning: Undefined variable $use_attributes in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 15 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
class
( ! ) Warning: Undefined variable $class_name in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 21 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
extends Command
{
( ! ) Warning: Undefined variable $use_attributes in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 23 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
protected static $defaultName = '
( ! ) Warning: Undefined variable $command_name in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 24 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {main}( ) | .../Command.tpl.php:0 |
';
protected static $defaultDescription = 'Add a short description for your command';
protected function configure(): void
{
$this
( ! ) Warning: Undefined variable $set_description in /work/home/ntrugeon/www/tp1symfony2024/vendor/symfony/maker-bundle/src/Resources/skeleton/command/Command.tpl.php on line 31 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0010 | 366312 | {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 0;
}
}