diff --git a/components/ILIAS/Cron/src/CLI/Commands/RunActiveJobsCommand.php b/components/ILIAS/Cron/src/CLI/Commands/RunActiveJobsCommand.php index 2cc1449d3238..67dd4da0da0b 100644 --- a/components/ILIAS/Cron/src/CLI/Commands/RunActiveJobsCommand.php +++ b/components/ILIAS/Cron/src/CLI/Commands/RunActiveJobsCommand.php @@ -40,7 +40,6 @@ protected function configure(): void $this->setDescription('Runs cron jobs depending on the respective schedule'); $this->addArgument('user', InputArgument::REQUIRED, 'The ILIAS user the script is executed with'); - $this->addArgument('client_id', InputArgument::REQUIRED, 'The ILIAS client_id'); } protected function execute(InputInterface $input, OutputInterface $output): int @@ -48,7 +47,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->style = new SymfonyStyle($input, $output); $cron = new \ILIAS\Cron\CLI\StartUp( - $input->getArgument('client_id'), $input->getArgument('user') ); diff --git a/components/ILIAS/Cron/src/CLI/StartUp.php b/components/ILIAS/Cron/src/CLI/StartUp.php index 5cde824c3c69..4f7ffb2ff841 100644 --- a/components/ILIAS/Cron/src/CLI/StartUp.php +++ b/components/ILIAS/Cron/src/CLI/StartUp.php @@ -28,16 +28,12 @@ class StartUp private bool $is_authenticated = false; public function __construct( - private readonly string $client, private readonly string $username, ?\ilAuthSession $authSession = null ) { /** @noRector */ \ilContext::init(\ilContext::CONTEXT_CRON); - // TODO @see mantis 20371: To get rid of this, the authentication service has to provide a mechanism to pass the client_id - $_GET['client_id'] = $this->client; - require_once __DIR__ . '/../../../../../artifacts/bootstrap_default.php'; entry_point('ILIAS Legacy Initialisation Adapter');