1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ServiceLocator
Граф наследования:ServiceLocator:

Открытые члены

 addInstance (string $code, mixed $service)
 addInstanceLazy (string $id, $configuration)
 registerByModuleSettings (string $moduleName)
 registerByGlobalSettings ()
 has (string $id)
 get (string $id)

Открытые статические члены

static getInstance ()

Подробное описание

См. определение в файле servicelocator.php строка 18

Методы

◆ addInstance()

addInstance ( string $code,
mixed $service )

Adds service to locator.

Аргументы
string$code
mixed$service

См. определение в файле servicelocator.php строка 48

◆ addInstanceLazy()

addInstanceLazy ( string $id,
$configuration )

Adds service with lazy initialization.

Аргументы
string$id
array$configuration
Возвращает
void
Исключения
SystemException

См. определение в файле servicelocator.php строка 60

◆ get()

get ( string $id)

Returns services by code.

Аргументы
string$id
Возвращает
mixed
Исключения
ObjectNotFoundException|NotFoundExceptionInterface|ServiceNotFoundException|CircularDependencyException

См. определение в файле servicelocator.php строка 126

◆ getInstance()

getInstance ( )
static

См. определение в файле servicelocator.php строка 33

◆ has()

has ( string $id)

Checks whether the service with code exists.

Аргументы
string$id
Возвращает
bool

См. определение в файле servicelocator.php строка 113

◆ registerByGlobalSettings()

registerByGlobalSettings ( )

Registers services by project settings, which is stored .settings.php.

Исключения
SystemException

См. определение в файле servicelocator.php строка 98

◆ registerByModuleSettings()

registerByModuleSettings ( string $moduleName)

Registers services by module settings, which is stored in {moduleName}/.settings.php.

Аргументы
string$moduleName
Исключения
SystemException

См. определение в файле servicelocator.php строка 77


Объявления и описания членов класса находятся в файле: