MediaWiki REL1_39
|
Do-nothing body validator. More...
Public Member Functions | |
__construct (array $bodyParamSettings) | |
validateBody (RequestInterface $request) | |
Validate the body of a request. | |
Do-nothing body validator.
Definition at line 14 of file JsonBodyValidator.php.
MediaWiki\Rest\Validator\JsonBodyValidator::__construct | ( | array | $bodyParamSettings | ) |
array[] | $bodyParamSettings |
Definition at line 24 of file JsonBodyValidator.php.
MediaWiki\Rest\Validator\JsonBodyValidator::validateBody | ( | RequestInterface | $request | ) |
Validate the body of a request.
This may return a data structure representing the parsed body. When used in the context of Handler::validateParams(), the returned value will be available to the handler via Handler::getValidatedBody().
RequestInterface | $request |
HttpException | on validation failure |
Implements MediaWiki\Rest\Validator\BodyValidator.
Definition at line 28 of file JsonBodyValidator.php.
References MediaWiki\Rest\RequestInterface\getBody().