• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/factories/factorybuilder.php
  • Класс: BitrixCalendarSyncFactoriesFactoryBuilder
  • Вызов: FactoryBuilder::__construct
public function __construct(
	string $accountType,
	SyncConnectionConnection $connection,
	SyncUtilContext $context
)
{
	$className = self::getClassName($accountType);
	if (!$className)
	{
		throw new BaseException('Factory for accout type is not found');
	}
	$this->factory = new $className($connection, $context);
}