mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
Fixed multi-language docs
This commit is contained in:
parent
06cac333e1
commit
ed9a473eab
@ -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
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user