22use ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BasicScalarValueFactory;
29 use BasicScalarValueFactory;
38 public function createTask(
string $class_name, ?array $input =
null):
Task
40 if (!class_exists($class_name)) {
44 $task = $this->injector->createInstance($class_name);
46 $wrappedInput = array_map(
function ($i):
Value {
47 if ($i instanceof
Task) {
48 return $i->getOutput();
50 if ($i instanceof
Value) {
54 return $this->wrapValue($i);
57 $task->setInput($wrappedInput);
__construct(protected 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...