portal.mkgtu.ru/common/components/dictionaryManager/ConfigurationValidateManage...

41 lines
602 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\components\dictionaryManager;
use Yii;
class ConfigurationValidateManager
{
private static function suspendUnspecifiedCodesError(bool $state): void
{
Yii::$app->configurationManager->suspendUnspecifiedCodesError($state);
}
public static function enableUnspecifiedCodesError(): void
{
ConfigurationValidateManager::suspendUnspecifiedCodesError(true);
}
public static function disableUnspecifiedCodesError(): void
{
ConfigurationValidateManager::suspendUnspecifiedCodesError(false);
}
}