FiberContextInterface
Carries execution context, e.g. the active OpenTelemetry context, into the fibers request handlers run in.
Tags
Table of Contents
Methods
- wrap() : callable(): TReturn
- Called in the context of the caller. The returned closure runs in the handler fiber and must call $handler once and return its result.
Methods
wrap()
Called in the context of the caller. The returned closure runs in the handler fiber and must call $handler once and return its result.
public
wrap(callable(): TReturn $handler) : callable(): TReturn
Parameters
- $handler : callable(): TReturn