class TransportFactory

Methods

static Transport
fromRecipe(array $recipe)

Rebuild a disconnected transport from its serialized configuration.

static StdioTransport
stdio(array $recipe)

Rebuild a stdio transport.

static HttpTransport
http(array $recipe)

Rebuild an HTTP transport.

static void
applyTimeout(Transport $transport, array $recipe)

Apply the configured timeout to the rebuilt transport.

Details

at line 18
static Transport fromRecipe(array $recipe)

Rebuild a disconnected transport from its serialized configuration.

Parameters

array $recipe

Return Value

Transport

at line 32
static protected StdioTransport stdio(array $recipe)

Rebuild a stdio transport.

Parameters

array $recipe

Return Value

StdioTransport

at line 55
static protected HttpTransport http(array $recipe)

Rebuild an HTTP transport.

Parameters

array $recipe

Return Value

HttpTransport

at line 88
static protected void applyTimeout(Transport $transport, array $recipe)

Apply the configured timeout to the rebuilt transport.

Parameters

Transport $transport
array $recipe

Return Value

void