protected function registerEventScanCommand() { $this->app->singleton('command.event.scan', function ($app) { return new EventScanCommand($app['files'], $this); }); }