class GuzzlePsr18Strategy implements DiscoveryStrategy

Prefer Guzzle for PSR-18 HTTP client auto-discovery.

Symfony's CurlHttpClient uses a shared CurlMultiHandle that is unsafe when reused across Swoole coroutines. Guzzle's PSR-18 sendRequest() forces synchronous mode which routes through CurlHandler (curl_exec), making it coroutine-safe.

Methods

static array
getCandidates(mixed $type)

Return discovery candidates for the given type.

Details

at line 25
static array getCandidates(mixed $type)

Return discovery candidates for the given type.

Parameters

mixed $type

Return Value

array