public function onWorkerStart($serv, $worker_id) { parent::prepareKernel(); $server = $this->server; $this->app->singleton('laravoole.server', function ($app) use($server) { return $server; }); }
public function onWorkerStart($worker) { $this->server = $worker; parent::prepareKernel(); }