First set of tests, argument unwrapping/injection
This commit is contained in:
1 parent
74960345ba
commit
35efaa1b0d
11 files changed
+870
-8
No files matched your search
+3
-1
@@ -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