final class OpenApiController (View source)

Serializes the current generated OpenAPI document as a UTF-8 JSON response.

Methods

__construct(OpenApiGenerator $generator, Psr17Factory $psr17)

Binds document generation to PSR-17 response and stream creation.

ResponseInterface
show()

Returns the current OpenAPI document without escaping slashes or Unicode characters.

ResponseInterface

Details

__construct

__construct(OpenApiGenerator $generator, Psr17Factory $psr17)

Binds document generation to PSR-17 response and stream creation.

Parameters

OpenApiGenerator $generator
Psr17Factory $psr17

show

ResponseInterface show()

Returns the current OpenAPI document without escaping slashes or Unicode characters.

Return Value

ResponseInterface

Exceptions

JsonException