Mpociot\ApiDoc\Commands\UpdateDocumentation::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : false | null
return false | null
    public function handle()
    {
        $outputPath = $this->option('location');
        $documentarian = new Documentarian();
        if (!is_dir($outputPath)) {
            $this->error('There is no generated documentation available at ' . $outputPath . '.');
            return false;
        }
        $this->info('Updating API HTML code');
        $documentarian->generate($outputPath);
        $this->info('Wrote HTML documentation to: ' . $outputPath . '/public/index.html');
    }
UpdateDocumentation