From 9a533bff5a3d25dad94c03756aa0f0988f11d312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Mon, 22 Apr 2024 15:25:25 +0200 Subject: [PATCH 1/2] Fix debug command --- Command/winzouStateMachineDebugCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/winzouStateMachineDebugCommand.php b/Command/winzouStateMachineDebugCommand.php index 32a979f..521857f 100644 --- a/Command/winzouStateMachineDebugCommand.php +++ b/Command/winzouStateMachineDebugCommand.php @@ -76,7 +76,7 @@ protected function interact(InputInterface $input, OutputInterface $output) /** * {@inheritdoc} */ - public function execute(InputInterface $input, OutputInterface $output) + public function execute(InputInterface $input, OutputInterface $output): int { $key = $input->getArgument('key'); From 2d518007ae75608b4c875effce8b6bc528b07328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Mon, 22 Apr 2024 15:35:41 +0200 Subject: [PATCH 2/2] Fix command name for SF7 --- Command/winzouStateMachineDebugCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Command/winzouStateMachineDebugCommand.php b/Command/winzouStateMachineDebugCommand.php index 521857f..4d13fe2 100644 --- a/Command/winzouStateMachineDebugCommand.php +++ b/Command/winzouStateMachineDebugCommand.php @@ -2,6 +2,7 @@ namespace winzou\Bundle\StateMachineBundle\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\TableSeparator; use Symfony\Component\Console\Input\InputArgument; @@ -10,6 +11,7 @@ use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Question\ChoiceQuestion; +#[AsCommand('debug:winzou:state-machine')] class winzouStateMachineDebugCommand extends Command { protected static $defaultName = 'debug:winzou:state-machine';