MediaWiki REL1_39
MediaWiki\Rest\Validator\NullBodyValidator Class Reference

Do-nothing body validator. More...

Inheritance diagram for MediaWiki\Rest\Validator\NullBodyValidator:
Collaboration diagram for MediaWiki\Rest\Validator\NullBodyValidator:

Public Member Functions

 validateBody (RequestInterface $request)
 Validate the body of a request.

Detailed Description

Do-nothing body validator.

Definition at line 10 of file NullBodyValidator.php.

Member Function Documentation

◆ validateBody()

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().

HttpExceptionon validation failure

Implements MediaWiki\Rest\Validator\BodyValidator.

Definition at line 12 of file NullBodyValidator.php.

The documentation for this class was generated from the following file: