NoI18nValidator.php 396 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace Cake\Test\TestCase\Validation;
  4. use Cake\Validation\Validator;
  5. /**
  6. * Validator without I18n functions available
  7. */
  8. class NoI18nValidator extends Validator
  9. {
  10. /**
  11. * Disable the usage of I18n functions
  12. */
  13. public function __construct()
  14. {
  15. $this->_useI18n = false;
  16. $this->_providers = self::$_defaultProviders;
  17. }
  18. }