Skip to content

Commit

Permalink
fixup! refactor: simplify background commands
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Jul 1, 2024
1 parent e2860c8 commit 23aa62b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/Command/Background/Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ protected function configure(): void {
}

protected function execute(InputInterface $input, OutputInterface $output): int {
$mode = match ($input->getArgument('command')) {
/** @var 'background:cron'|'background:ajax'|'background:webcron' $command */
$command = $input->getArgument('command');

$mode = match ($command) {
'background:cron' => 'cron',
'background:ajax' => 'ajax',
'background:webcron' => 'webcron',
Expand Down

0 comments on commit 23aa62b

Please sign in to comment.