Yoast\WP\SEO\Generated

Cached_Container::getIndexableHierarchyRepositoryServiceprotectedYoast 1.0

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

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Repositories\Indexable_Hierarchy_Repository.

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

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

Код Cached_Container::getIndexableHierarchyRepositoryService() Yoast 27.8

protected function getIndexableHierarchyRepositoryService()
{
    $this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Hierarchy_Repository'] = $instance = new \Yoast\WP\SEO\Repositories\Indexable_Hierarchy_Repository();

    $instance->set_builder(($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'] ?? $this->getIndexableHierarchyBuilderService()));
    $instance->set_helper(($this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] ?? $this->getIndexableHelperService()));

    return $instance;
}