Yoast\WP\SEO\Generated

Cached_Container::getTokenManager2Service │ protected │ Yoast 1.0

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

Gets the public 'Yoast\WP\SEO\AI_Authorization\Application\Token_Manager' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\AI_Authorization\Application\Token_Manager.

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

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

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

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

Код Cached_Container::getTokenManager2Service() Yoast 28.9

protected function getTokenManager2Service()
{
    trigger_deprecation('Yoast\\WP\\SEO\\AI_Authorization\\Application\\Token_Manager', '28.4', 'Yoast\\WP\\SEO\\AI_Authorization\\Application\\Token_Manager is deprecated since version 28.4!');

    return $this->services['Yoast\\WP\\SEO\\AI_Authorization\\Application\\Token_Manager'] = new \Yoast\WP\SEO\AI_Authorization\Application\Token_Manager(($this->services['Yoast\\WP\\SEO\\AI_Authorization\\Infrastructure\\Access_Token_User_Meta_Repository'] ?? $this->getAccessTokenUserMetaRepositoryService()), ($this->services['Yoast\\WP\\SEO\\AI_Authorization\\Application\\Code_Verifier_Handler'] ?? $this->getCodeVerifierHandlerService()), ($this->services['Yoast\\WP\\SEO\\AI_Authorization\\Infrastructure\\Refresh_Token_User_Meta_Repository'] ?? $this->getRefreshTokenUserMetaRepositoryService()), ($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_HTTP_Request\\Application\\Request_Handler'] ?? $this->getRequestHandler2Service()), ($this->services['Yoast\\WP\\SEO\\AI_Authorization\\Infrastructure\\Code_Verifier_User_Meta_Repository'] ?? $this->getCodeVerifierUserMetaRepositoryService()), ($this->services['Yoast\\WP\\SEO\\AI_Generator\\Infrastructure\\WordPress_URLs'] ?? $this->getWordPressURLsService()));
}