timesheetService = $timesheetService; } protected function configure(): void { $this->setName('kimai:timesheet:stop-all'); $this->setDescription('Stop all running timesheets immediately'); } protected function execute(InputInterface $input, OutputInterface $output): ?int { $amount = $this->timesheetService->stopAll(); if (!$output->isQuiet()) { $io = new SymfonyStyle($input, $output); $io->success(sprintf('Stopped %s timesheet records.', $amount)); } return 0; } }