From ed9a473eabe13b95532343a37d200be011b5ed79 Mon Sep 17 00:00:00 2001 From: huangzhhui Date: Mon, 14 Jun 2021 01:30:52 +0800 Subject: [PATCH] Fixed multi-language docs --- docs/en/validation.md | 5 ++++- docs/zh-hk/validation.md | 5 ++++- docs/zh-tw/validation.md | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/en/validation.md b/docs/en/validation.md index c16a9c61a..e4fbdcd2f 100644 --- a/docs/en/validation.md +++ b/docs/en/validation.md @@ -888,11 +888,14 @@ The `Validation` component uses an event mechanism to implement custom validatio ```php namespace App\Listener; - +use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Validation\Contract\ValidatorFactoryInterface; use Hyperf\Validation\Event\ValidatorFactoryResolved; +/** + * @Listener + */ class ValidatorFactoryResolvedListener implements ListenerInterface { diff --git a/docs/zh-hk/validation.md b/docs/zh-hk/validation.md index a7e6e8e03..a48ef10d0 100644 --- a/docs/zh-hk/validation.md +++ b/docs/zh-hk/validation.md @@ -888,11 +888,14 @@ $validator = $this->validationFactory->make($request->all(), [ ```php namespace App\Listener; - +use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Validation\Contract\ValidatorFactoryInterface; use Hyperf\Validation\Event\ValidatorFactoryResolved; +/** + * @Listener + */ class ValidatorFactoryResolvedListener implements ListenerInterface { diff --git a/docs/zh-tw/validation.md b/docs/zh-tw/validation.md index 62458c9cb..f23b8bbb8 100644 --- a/docs/zh-tw/validation.md +++ b/docs/zh-tw/validation.md @@ -888,11 +888,14 @@ $validator = $this->validationFactory->make($request->all(), [ ```php namespace App\Listener; - +use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Validation\Contract\ValidatorFactoryInterface; use Hyperf\Validation\Event\ValidatorFactoryResolved; +/** + * @Listener + */ class ValidatorFactoryResolvedListener implements ListenerInterface {