namespace Combodo\iTop\Form\Validator; use DeprecatedCallsLog; /** * Description of Validator * * @deprecated 3.1.0 N°6414 use {@see \Combodo\iTop\Form\Validator\CustomRegexpValidator} instead */ class Validator extends CustomRegexpValidator { public function __construct($sRegExp = null, $sErrorMessage = null) { // cannot use DeprecatedCallsLog::NotifyDeprecatedFile as it would trigger an exception on dev env // because all autoloader files are loaded during MetaModel::Startup (calling \Combodo\iTop\Service\Events\EventService::InitService calling \utils::GetClassesForInterface) DeprecatedCallsLog::NotifyDeprecatedPhpMethod('3.1.0 N°6414 use '.CustomRegexpValidator::class.' instead'); parent::__construct($sRegExp, $sErrorMessage); } }