Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ 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
{
$this->style = new SymfonyStyle($input, $output);

$cron = new \ILIAS\Cron\CLI\StartUp(
$input->getArgument('client_id'),
$input->getArgument('user')
);

Expand Down
4 changes: 0 additions & 4 deletions components/ILIAS/Cron/src/CLI/StartUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Loading