Yoast\WP\SEO\Generated

Cached_Container::getConsentHandler2ServiceprotectedYoast 1.0

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();

Код Cached_Container::getConsentHandler2Service() Yoast 28.3

protected function getConsentHandler2Service()
{
    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()));
}