Yoast\WP\SEO\Generated

Cached_Container::getConsentHandler2Service │ protected │ Yoast 1.0

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

Gets the public 'Yoast\WP\SEO\AI_Consent\Application\Consent_Handler' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\AI_Consent\Application\Consent_Handler.

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

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

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

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

Код Cached_Container::getConsentHandler2Service() Yoast 28.9

protected function getConsentHandler2Service()
{
    trigger_deprecation('Yoast\\WP\\SEO\\AI_Consent\\Application\\Consent_Handler', '28.4', 'Yoast\\WP\\SEO\\AI_Consent\\Application\\Consent_Handler is deprecated since version 28.4!');

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