Zephir\Compiler::api PHP Метод

api() публичный Метод

Generate a HTML API
public api ( Zephir\Commands\CommandInterface $command, boolean $fromGenerate = false )
$command Zephir\Commands\CommandInterface
$fromGenerate boolean
    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();
    }