This commit is contained in:
as2252258@163.com
2021-05-03 03:48:52 +08:00
parent a90e647529
commit 8137b24865
25 changed files with 273 additions and 306 deletions
+15 -16
View File
@@ -34,22 +34,21 @@ use Snowflake\Snowflake;
}
/**
* @param array $handler
* @return mixed
* @throws Exception
*/
public function execute(array $handler): mixed
{
$class = ['class' => $handler[0]::class];
if (!empty($this->args)) {
$class = array_merge($class, $this->args);
}
Snowflake::set($this->service, $class);
return parent::execute($handler); // TODO: Change the autogenerated stub
}
/**
* @param object $class
* @param string $method
* @return mixed
* @throws \Exception
*/
public function execute(mixed $class, mixed $method = null): mixed
{
$class = ['class' => $class::class];
if (!empty($this->args)) {
$class = array_merge($class, $this->args);
}
Snowflake::set($this->service, $class);
return true; // TODO: Change the autogenerated stub
}
}