Yoast\WP\SEO\Generated
Cached_Container::getAPIClient2Service
Устарела с версии Since Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client 28.4: Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client is deprecated since version 28.4!. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Gets the public 'Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client' shared autowired service.
Метод класса: Cached_Container{}
Хуков нет.
Возвращает
\Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->getAPIClient2Service();
Список изменений
| Устарела | Since Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client 28.4: Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client is deprecated since version 28.4! |
Код Cached_Container::getAPIClient2Service() Cached Container::getAPIClient2Service Yoast 28.9
protected function getAPIClient2Service()
{
trigger_deprecation('Yoast\\WP\\SEO\\AI_HTTP_Request\\Infrastructure\\API_Client', '28.4', 'Yoast\\WP\\SEO\\AI_HTTP_Request\\Infrastructure\\API_Client is deprecated since version 28.4!');
return $this->services['Yoast\\WP\\SEO\\AI_HTTP_Request\\Infrastructure\\API_Client'] = new \Yoast\WP\SEO\AI_HTTP_Request\Infrastructure\API_Client();
}