Yoast\WP\SEO\Generated

Cached_Container::getMyYoastClientCleanupService │ protected │ Yoast 1.0

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

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

Хуков нет.

Возвращает

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

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

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

Код Cached_Container::getMyYoastClientCleanupService() Yoast 28.9

protected function getMyYoastClientCleanupService()
{
    $this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Application\\MyYoast_Client_Cleanup'] = $instance = new \Yoast\WP\SEO\MyYoast_Client\Application\MyYoast_Client_Cleanup(($this->privates['Yoast\\WP\\SEO\\MyYoast_Client\\Infrastructure\\Registration\\Client_Registration'] ?? $this->getClientRegistrationService()), ($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()));

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

    return $instance;
}