Flow PHP

ShutdownHandler

FinalYes

Registers Telemetry instances for shutdown at process end.

Instances are held through weak references, so registration does not keep a Telemetry object graph alive - an instance that was garbage collected before process end (a discarded test kernel, a rebooted container) is silently skipped. On invocation the handler re-registers its work at the end of the shutdown-function queue, so telemetry drains after other registered shutdown functions (loggers, sessions, ...) have run.

Methods

invoke()  : void
Shut down all still-referenced Telemetry instances, most recent first.
register()  : void

Methods

invoke()

Shut down all still-referenced Telemetry instances, most recent first.

public static invoke() : void

Public only so process-end behaviour can be exercised in tests without terminating the PHP process.

On this page

Search results