19 declare(strict_types=1);
42 $this->setDescription(
'Runs cron jobs depending on the respective schedule');
44 $this->addArgument(
'user', InputArgument::REQUIRED,
'The ILIAS user the script is executed with');
45 $this->addArgument(
'client_id', InputArgument::REQUIRED,
'The ILIAS client_id');
48 protected function execute(InputInterface $input, OutputInterface $output):
int 50 $this->style =
new SymfonyStyle($input, $output);
53 $input->getArgument(
'client_id'),
54 $input->getArgument(
'user')
58 $cron->authenticate();
62 $this->style->success(
'Success');
66 $this->style->error($e->getMessage());
67 $this->style->error($e->getTraceAsString());
80 $DIC->cron()->manager()
82 $strictCronManager->runActiveJobs($DIC->user());
withAuthenticated(InputInterface $input, OutputInterface $output)
execute(InputInterface $input, OutputInterface $output)