modify
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Annotation;
|
||||
|
||||
|
||||
use Exception;
|
||||
use validator\Validator;
|
||||
|
||||
/**
|
||||
* Class RequestValidator
|
||||
* @package Annotation
|
||||
*/
|
||||
#[\Attribute(\Attribute::TARGET_METHOD)] class RequestValidator extends Attribute
|
||||
{
|
||||
|
||||
/**
|
||||
* RequestValidator constructor.
|
||||
* @param array $validators
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct(public array $validators)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return bool
|
||||
*/
|
||||
public function execute(array $handler): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user