Yoast\WP\SEO\Generated

Cached_Container::getSuggestionsProviderService │ protected │ Yoast 1.0

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

Gets the public 'Yoast\WP\SEO\AI_Generator\Application\Suggestions_Provider' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\AI_Generator\Application\Suggestions_Provider.

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

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

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

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

Код Cached_Container::getSuggestionsProviderService() Yoast 28.9

protected function getSuggestionsProviderService()
{
    trigger_deprecation('Yoast\\WP\\SEO\\AI_Generator\\Application\\Suggestions_Provider', '28.4', 'Yoast\\WP\\SEO\\AI_Generator\\Application\\Suggestions_Provider is deprecated since version 28.4!');

    return $this->services['Yoast\\WP\\SEO\\AI_Generator\\Application\\Suggestions_Provider'] = new \Yoast\WP\SEO\AI_Generator\Application\Suggestions_Provider(($this->services['Yoast\\WP\\SEO\\AI_Consent\\Application\\Consent_Handler'] ?? $this->getConsentHandler2Service()), ($this->services['Yoast\\WP\\SEO\\AI_HTTP_Request\\Application\\Request_Handler'] ?? $this->getRequestHandler2Service()), ($this->services['Yoast\\WP\\SEO\\AI_Authorization\\Application\\Token_Manager'] ?? $this->getTokenManager2Service()), ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] = new \Yoast\WP\SEO\Helpers\User_Helper())));
}