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