23use ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BasicScalarValueFactory;
30 use BasicScalarValueFactory;
32 protected \ILIAS\BackgroundTasks\Dependencies\Injector
$injector;
42 public function createTask(
string $class_name, ?array $input =
null):
Task
44 if (!class_exists($class_name)) {
48 $task = $this->injector->createInstance($class_name);
50 $wrappedInput = array_map(
function (
$i): \
ILIAS\BackgroundTasks\
Value {
52 return $i->getOutput();
58 return $this->wrapValue(
$i);
61 $task->setInput($wrappedInput);
Class Exception Thrown if some procedure did not get the arguments it expected.
__construct(Injector $injector)
ILIAS BackgroundTasks Dependencies Injector $injector
Class NotFoundUserInteraction.
createTask(string $class_name, ?array $input=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.