Library/Compiler.php
public function api(array $options = [], $fromGenerate = false)
    {
        if (!$fromGenerate) {
            $this->generate();
        }

        $templatesPath = $this->templatesPath;
        if (null === $templatesPath) {
            // fallback
            $templatesPath = \dirname(__DIR__).'/templates';
        }

        $documentator = new Documentation($this->files, $this->config, $templatesPath, $options);
        $documentator->setLogger($this->logger);

        $this->logger->info('Generating API into '.$documentator->getOutputDirectory());
        $documentator->build();
    }
public function api(array $options = [], $fromGenerate = false)
    {
        if (!$fromGenerate) {
            $this->generate();
        }

        $templatesPath = $this->templatesPath;
        if (null === $templatesPath) {
            // fallback
            $templatesPath = \dirname(__DIR__).'/templates';
        }

        $documentator = new Documentation($this->files, $this->config, $templatesPath, $options);
        $documentator->setLogger($this->logger);

        $this->logger->info('Generating API into '.$documentator->getOutputDirectory());
        $documentator->build();
    }
public function api ( array $ options = [ ] , $ fromGenerate = false ) { if ( ! $ fromGenerate ) { $ this -> generate ( ) ; } $ templatesPath = $ this -> templatesPath ; if ( null === $ templatesPath ) { // fallback $ templatesPath = \ dirname ( __DIR__ ) . '/templates' ; } $ documentator = new Documentation ( $ this -> files , $ this -> config , $ templatesPath , $ options ) ; $ documentator -> setLogger ( $ this -> logger ) ; $ this -> logger -> info ( 'Generating API into ' . $ documentator -> getOutputDirectory ( ) ) ; $ documentator -> build ( ) ; }
Generate a HTML API.

@param array $options
@param bool  $fromGenerate

@throws ConfigException
@throws Exception
Generate a HTML API .