Документация для разработчиков
Темная тема

instance

\Bitrix\HumanResources\Public\Service\Container public static
\Bitrix\HumanResources\Public\Service\Container::instance(
);

Метод возвращает публичный контейнер сервисов модуля humanresources. Статический метод.

Параметры

Без параметров.

Возвращаемое значение

Метод возвращает объект \Bitrix\HumanResources\Public\Service\Container.

Пример

<?php

use Bitrix\HumanResources\Public\Service\Container;
use Bitrix\Main\Loader;

if (!Loader::includeModule('humanresources'))
{
	echo 'Модуль humanresources не установлен';
	return;
}

$container = Container::instance();

echo get_class($container);


© «Битрикс», 2001-2026, «1С-Битрикс», 2026