OpenApiModule
Less than 1 minute
OpenApiModule
Console module for generating an OpenAPI 3.2 document from an application's routes.
class OpenApiModule extends \Hazaar\Console\ModuleExtends: Hazaar\Console\Module
Methods
configure
Configures the module by adding the compile command and its options.
protected configure(): voidReturns: void
compile
Generates the OpenAPI document and writes it to the requested output file.
protected compile(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:18 +0000