Yoast\WP\SEO\Generated

Cached_Container::getRequestHandler2Service │ protected │ Yoast 1.0

Устарела с версии Since Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler 28.4: Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler is deprecated since version 28.4!. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Gets the public 'Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler' shared autowired service.

Метод класса: Cached_Container{}

Хуков нет.

Возвращает

\Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->getRequestHandler2Service();

Список изменений

Устарела Since Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler 28.4: Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler is deprecated since version 28.4!

Код Cached_Container::getRequestHandler2Service() Yoast 28.9

protected function getRequestHandler2Service()
{
    trigger_deprecation('Yoast\\WP\\SEO\\AI_HTTP_Request\\Application\\Request_Handler', '28.4', 'Yoast\\WP\\SEO\\AI_HTTP_Request\\Application\\Request_Handler is deprecated since version 28.4!');

    return $this->services['Yoast\\WP\\SEO\\AI_HTTP_Request\\Application\\Request_Handler'] = new \Yoast\WP\SEO\AI_HTTP_Request\Application\Request_Handler(($this->services['Yoast\\WP\\SEO\\AI_HTTP_Request\\Infrastructure\\API_Client'] ?? $this->getAPIClient2Service()), ($this->services['Yoast\\WP\\SEO\\AI_HTTP_Request\\Application\\Response_Parser'] ?? $this->getResponseParserService()));
}