- Модуль: location
- Путь к файлу: ~/bitrix/modules/location/lib/source/osm/tokenrequester.php
- Класс: BitrixLocationSourceOsmTokenRequester
- Вызов: TokenRequester::checkLicenseIssueByResult
private function checkLicenseIssueByResult(Result $result): void
{
$licenseIssueErrorCodes = [
self::ERROR_LICENSE_NOT_FOUND,
self::ERROR_WRONG_SIGN,
self::ERROR_LICENSE_DEMO,
self::ERROR_LICENSE_NOT_ACTIVE,
];
$errors = $result->getErrors();
foreach ($errors as $error)
{
if (in_array($error->getCode(), $licenseIssueErrorCodes, true))
{
$this->cacheManager->set(self::getCacheId(), true);
}
}
}