/**
  * Generates the API documentation.
  *
  * @return \ApiGen\Application
  */
 protected function generate()
 {
     $skipping = array_merge($this->config->skipDocPath->toArray(), $this->config->skipDocPrefix->toArray());
     // @todo better merge
     if (count($skipping) > 1) {
         $this->logger->log("Will not generate documentation for\n %value\n", implode("\n ", $skipping));
     } elseif (!empty($skipping)) {
         $this->logger->log("Will not generate documentation for %value\n", $skipping[0]);
     }
     $this->generator->generate();
     return $this;
 }
 /**
  * Handles an exception.
  *
  * @param \Exception $e Thrown exception
  */
 public function handleException(Exception $e)
 {
     $this->logger->logException($e);
     exit(min(1, $e->getCode()));
 }