Yoast\WP\SEO\Generated

Cached_Container::getMyYoastClientService │ protected │ Yoast 1.0

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

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\MyYoast_Client\Application\MyYoast_Client.

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

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

Код Cached_Container::getMyYoastClientService() Yoast 28.9

protected function getMyYoastClientService()
{
    $a = ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Registration\\Client_Registration'] ?? $this->getClientRegistrationService());
    $b = ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Http\\HTTP_Client'] ?? $this->getHTTPClientService());

    $c = new \Yoast\WP\SEO\MyYoast_Client\Application\Token_Revocation_Handler(($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\OIDC\\Discovery_Client'] ?? $this->getDiscoveryClientService()), $a, ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Crypto\\Client_Authenticator'] ?? $this->getClientAuthenticatorService()), $b);

    $d = ($this->services['Yoast\\WP\\SEO\\Loggers\\Logger'] ?? ($this->services['Yoast\\WP\\SEO\\Loggers\\Logger'] = new \Yoast\WP\SEO\Loggers\Logger()));

    $c->setLogger($d);

    $this->services['Yoast\\WP\\SEO\\MyYoast_Client\\Application\\MyYoast_Client'] = $instance = new \Yoast\WP\SEO\MyYoast_Client\Application\MyYoast_Client($a, ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Application\\Authorization_Code_Handler'] ?? $this->getAuthorizationCodeHandlerService()), ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Application\\OAuth_Grant_Handler'] ?? $this->getOAuthGrantHandlerService()), $c, $b, ($this->services['Yoast\\WP\\SEO\\Helpers\\Lock_Helper'] ?? $this->getLockHelperService()), ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Token\\Token_Storage'] ?? $this->getTokenStorageService()), ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Token\\User_Token_Storage'] ?? $this->getUserTokenStorageService()), new \Yoast\WP\SEO\MyYoast_Client\Infrastructure\WordPress\Site_URL_Provider(), ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\WordPress\\Redirect_URI_Provider'] ?? ($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\WordPress\\Redirect_URI_Provider'] = new \Yoast\WP\SEO\MyYoast_Client\Infrastructure\WordPress\Redirect_URI_Provider())));

    $instance->setLogger($d);

    return $instance;
}