Api参数校验中间件只对server名称为http的有效
hanchikang opened this issue · comments
hanchikang commented
public function __construct(ContainerInterface $container, HttpResponse $response, RequestInterface $request, ValidationApi $validation)
{
$this->container = $container;
$this->response = $response;
$this->request = $request;
$this->validationApi = $validation;
parent::__construct($container, 'http');
}