WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp

choose_handler() Yoast 1.0

Chooses and creates a default handler to use based on the environment.

The returned handler is not wrapped by any default middlewares.

Хуков нет.

Возвращает

callable. Returns the best handler for the given system.

Использование

choose_handler();

Код choose_handler() Yoast 17.1

function choose_handler()
{
    $handler = null;
    if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
        $handler = \YoastSEO_Vendor\GuzzleHttp\Handler\Proxy::wrapSync(new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlMultiHandler(), new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlHandler());
    } elseif (\function_exists('curl_exec')) {
        $handler = new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlHandler();
    } elseif (\function_exists('curl_multi_exec')) {
        $handler = new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlMultiHandler();
    }
    if (\ini_get('allow_url_fopen')) {
        $handler = $handler ? \YoastSEO_Vendor\GuzzleHttp\Handler\Proxy::wrapStreaming($handler, new \YoastSEO_Vendor\GuzzleHttp\Handler\StreamHandler()) : new \YoastSEO_Vendor\GuzzleHttp\Handler\StreamHandler();
    } elseif (!$handler) {
        throw new \RuntimeException('GuzzleHttp requires cURL, the ' . 'allow_url_fopen ini setting, or a custom HTTP handler.');
    }
    return $handler;
}