async_reload !== true) { return; } Event::on(Event::SERVER_WORKER_EXIT, function () { Snowflake::app()->remove($this->service); }); } /** * @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 } }