Exemple #1
0
 /**
  * Generate a HTML API
  *
  * @param CommandInterface $command
  * @param bool             $fromGenerate
  */
 public function api(CommandInterface $command, $fromGenerate = false)
 {
     if (!$fromGenerate) {
         $this->generate($command);
     }
     $documentator = new Documentation($this->files, $this->config, $this->logger, $command);
     $this->logger->output('Generating API into ' . $documentator->getOutputDirectory());
     $documentator->build();
 }