First set of tests, argument unwrapping/injection
This commit is contained in:
@ -31,7 +31,9 @@ class Command
|
||||
public function call(Context $context): PromiseInterface
|
||||
{
|
||||
return new Promise(function (callable $resolve) use ($context) {
|
||||
$resolve(call_user_func($this->handler, $context));
|
||||
$args = $context->toMethodParameters($this->handler);
|
||||
$resolve(call_user_func($this->handler, ...$args));
|
||||
//$resolve(call_user_func($this->handler, $context));
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user