There is also a TODO line about this in the code in RegisteredElement.php -> prepareArguments.
I extended the framework in my code and am currently overriding RegisteredElement.php file. I achieved what I need by doing the following:
in RegisteredElement.php::handle
if (is_callable($this->handler)) {
$reflection = $this->getReflectionForCallable($this->handler);
$arguments = $this->prepareArguments($reflection, $arguments, $context);
return call_user_func($this->handler, ...$arguments);
}
is replaced with:
if (is_callable($this->handler)) {
$reflection = $this->getReflectionForCallable($this->handler);
return call_user_func($this->handler, $arguments);
}
but I am not versed enough to parametrize this in to the framework itself
There is also a TODO line about this in the code in RegisteredElement.php -> prepareArguments.
I extended the framework in my code and am currently overriding RegisteredElement.php file. I achieved what I need by doing the following:
in RegisteredElement.php::handle
is replaced with:
but I am not versed enough to parametrize this in to the framework itself