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