/**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     // get classes
     $classes = $this->finder->getClassesFromNamespace($this->config['events_namespace']);
     // build metadata
     $events = $this->scanner->scan($classes);
     // generate events.php file for scanned events
     $this->generator->generate($events);
     $this->info('Events registered successfully!');
 }
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     // delete events.php file
     $this->generator->clean();
     $this->info('Events cleared successfully!');
 }