MCP PHP SDK

FiberContextInterface

Carries execution context, e.g. the active OpenTelemetry context, into the fibers request handlers run in.

Tags
author

bbdu3 ergouyang854@gmail.com

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
Return values
callable(): TReturn
On this page

Search results