final class FrameworkHealthConfigSnapshot (View source)

Carries the immutable configuration subset required by the pre-bootstrap health fast path.

Methods

__construct(ApiConfig $api, AppConfig $app, CorsConfig|null $cors)

Captures resolved API, application and CORS policies as one atomic snapshot.

api()

Returns the resolved API policy used to match and authorize the health endpoint.

app()

Returns application settings needed for health response metadata.

CorsConfig|null
cors()

Returns the optional CORS policy applied to the fast-path response.

CorsConfig|null

Details

__construct

__construct(ApiConfig $api, AppConfig $app, CorsConfig|null $cors)

Captures resolved API, application and CORS policies as one atomic snapshot.

Parameters

ApiConfig $api
AppConfig $app
CorsConfig|null $cors

api

Returns the resolved API policy used to match and authorize the health endpoint.

Return Value

ApiConfig

app

Returns application settings needed for health response metadata.

Return Value

AppConfig

cors

CorsConfig|null cors()

Returns the optional CORS policy applied to the fast-path response.

Return Value

CorsConfig|null