Ejemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle(InheritanceFinderInterface $inheritanceFinder)
 {
     $includeCommand = new ClassSelector($inheritanceFinder);
     $laravelConsoleInteraction = new LaravelConsoleInteraction();
     $laravelConsoleInteraction->setCommand($this);
     $includeCommand->setOutput($laravelConsoleInteraction);
     $includeCommand->includeCommand(base_path());
 }
Ejemplo n.º 2
0
 /**
  * Execute the console command.
  *
  * @param InheritanceFinderInterface $inheritanceFinder
  * @return mixed
  */
 public function handle(InheritanceFinderInterface $inheritanceFinder)
 {
     $generateCommand = new \Synga\PhpStormMeta\Command\GenerateCommand(new Resolver($this->getLaravel()), $inheritanceFinder, new ClassSelector($inheritanceFinder));
     $laravelConsoleInteraction = new LaravelConsoleInteraction();
     $laravelConsoleInteraction->setCommand($this);
     $generateCommand->setOutput($laravelConsoleInteraction);
     $generateCommand->generate(base_path());
 }