service = new BrowserJobsInstances(); } /** * Register services. */ public function register(): void { $this->app->instance(BrowserJobsInstances::class, $this->service); } /** * Bootstrap services. */ public function boot(): void { $this->app->terminating(function (BrowserJobsInstances $instances) { $instances->terminateAll(); }); } }