Example #1
0
File: Docs.php Project: dingo/api
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $contents = $this->blueprint->generate($this->getControllers(), $this->getDocName(), $this->getVersion(), $this->getIncludePath());
     if ($file = $this->option('output-file')) {
         $this->writer->write($contents, $file);
         return $this->info('Documentation was generated successfully.');
     }
     return $this->line($contents);
 }