改名
This commit is contained in:
@@ -24,7 +24,6 @@ use Snowflake\Snowflake;
|
|||||||
*/
|
*/
|
||||||
public function __construct(public string $service, public array $args = [], public bool $async_reload = true)
|
public function __construct(public string $service, public array $args = [], public bool $async_reload = true)
|
||||||
{
|
{
|
||||||
var_dump($this->service);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -40,12 +39,11 @@ use Snowflake\Snowflake;
|
|||||||
$class = array_merge($class, $this->args);
|
$class = array_merge($class, $this->args);
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($this->service, $class);
|
|
||||||
Snowflake::set($this->service, $class);
|
Snowflake::set($this->service, $class);
|
||||||
if ($this->async_reload === true) {
|
// if ($this->async_reload === true) {
|
||||||
$event = Snowflake::app()->getEvent();
|
// $event = Snowflake::app()->getEvent();
|
||||||
$event->on(Event::SERVER_WORKER_EXIT, [$this, 'clear']);
|
// $event->on(Event::SERVER_WORKER_EXIT, [$this, 'clear']);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return parent::execute($handler); // TODO: Change the autogenerated stub
|
return parent::execute($handler); // TODO: Change the autogenerated stub
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user