Documentation

registerAutoLoadClasses

 public static
\Bitrix\Main\Loader::registerAutoLoadClasses(
 string $moduleName,
 array $arClasses
);

Static method registers classes for autoloading.

All the most frequently used classes must be registered for autoloading. Registration can be skipped for rarely used classes, they will be found and connected upon first use.

Parameters

ParameterDescriptionVersion
$moduleNameModule name. Can be null when classes are not included as part of any module.
$arClassesArray with class names as keys and path as key values.

Exceptions

Example



© «Bitrix24», 2001-2024
Up