modify
This commit is contained in:
@@ -32,11 +32,11 @@ use Snowflake\Snowflake;
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public function execute(array $handler): mixed
|
||||
public function execute(mixed $class, mixed $method = ''): mixed
|
||||
{
|
||||
$rpc = Snowflake::app()->getRpc();
|
||||
$rpc->addConsumer($this->cmd, $handler);
|
||||
return parent::execute($handler); // TODO: Change the autogenerated stub
|
||||
$rpc->addConsumer($this->cmd, [$class, $method]);
|
||||
return true; // TODO: Change the autogenerated stub
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user