Yoast\WP\SEO\Generated

Cached_Container::getIndexableRepositoryService()protectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Repositories\Indexable_Repository' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Repositories\Indexable_Repository.

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

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

Код Cached_Container::getIndexableRepositoryService() Yoast 22.4

protected function getIndexableRepositoryService()
{
    $a = ${($_ = isset($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Builder']) ? $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Builder'] : $this->getIndexableBuilderService()) && false ?: '_'};

    if (isset($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'])) {
        return $this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'];
    }
    $b = ${($_ = isset($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Hierarchy_Repository']) ? $this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Hierarchy_Repository'] : $this->getIndexableHierarchyRepositoryService()) && false ?: '_'};

    if (isset($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'])) {
        return $this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'];
    }

    return $this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'] = new \Yoast\WP\SEO\Repositories\Indexable_Repository($a, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Current_Page_Helper'] : $this->getCurrentPageHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Loggers\\Logger']) ? $this->services['Yoast\\WP\\SEO\\Loggers\\Logger'] : ($this->services['Yoast\\WP\\SEO\\Loggers\\Logger'] = new \Yoast\WP\SEO\Loggers\Logger())) && false ?: '_'}, $b, ${($_ = isset($this->services['wpdb']) ? $this->services['wpdb'] : $this->getWpdbService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Services\\Indexables\\Indexable_Version_Manager']) ? $this->services['Yoast\\WP\\SEO\\Services\\Indexables\\Indexable_Version_Manager'] : $this->getIndexableVersionManagerService()) && false ?: '_'});
}