Fixed multi-language docs

This commit is contained in:
huangzhhui 2021-06-14 01:30:52 +08:00
parent 06cac333e1
commit ed9a473eab
3 changed files with 12 additions and 3 deletions

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{