config.php 864 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. return [
  12. /*
  13. * --------------------------------------------------------------------------------
  14. * 自定义数据提供者.
  15. * 如果你想自己向验证器提供数据,那么可以尝试修改这个选项
  16. * 指定类名,如果不存在则会抛出\RuntimeException异常
  17. * 请让你的自定义数据提供者实现\DeathSatan\Hyperf\Validate\Contract\CustomHandle契约.
  18. * 只有这样它才不会抛出异常.
  19. * --------------------------------------------------------------------------------
  20. */
  21. 'customHandle' => \DeathSatan\Hyperf\Validate\Driver\RequestHandle::class,
  22. ];