| 1 | <?php |
||
| 16 | class ValidatorMiddleware implements Middleware |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var ValidatorInterface |
||
| 20 | */ |
||
| 21 | protected $validator; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param ValidatorInterface $validator |
||
| 25 | */ |
||
| 26 | 2 | public function __construct(ValidatorInterface $validator) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param mixed $message |
||
| 33 | * @param callable $next |
||
| 34 | * |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | 2 | public function handle($message, callable $next) |
|
| 47 | } |
||
| 48 |