interface HttpDiagnosticsObserverFactoryInterface (View source)

Creates an optional request-local observer before application providers bootstrap.

Implementations must be bootstrap-safe and return null when profiling is disabled. A factory may be supplied explicitly before configuration or implemented by an explicitly configured application provider, activated after configuration and before provider bootstrap.

Methods

create(ContainerInterface $container, ServerRequestInterface $request, int|float $startedNs)

Receives the common monotonic origin; defer dependencies needing providers until completion.

Details

create

HttpDiagnosticsObserverInterface|null create(ContainerInterface $container, ServerRequestInterface $request, int|float $startedNs)

Receives the common monotonic origin; defer dependencies needing providers until completion.

Parameters

ContainerInterface $container
ServerRequestInterface $request
int|float $startedNs

Return Value

HttpDiagnosticsObserverInterface|null