MediaWiki master
|
Do-nothing body validator. More...
Inherits MediaWiki\Rest\Validator\BodyValidator.
Public Member Functions | ||||||
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().
| ||||||
Do-nothing body validator.
Definition at line 12 of file NullBodyValidator.php.
MediaWiki\Rest\Validator\NullBodyValidator::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 18 of file NullBodyValidator.php.