modify
This commit is contained in:
+15
-16
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user