|
|
@ -15,7 +15,6 @@ class Control {
|
|
|
|
* @param array<string, Validator[]> $schema an array of `fieldName => DefaultValidators` which represents the request object schema
|
|
|
|
* @param array<string, Validator[]> $schema an array of `fieldName => DefaultValidators` which represents the request object schema
|
|
|
|
* @param callable(HttpRequest): HttpResponse $run the callback to run if the request is valid according to the given schema.
|
|
|
|
* @param callable(HttpRequest): HttpResponse $run the callback to run if the request is valid according to the given schema.
|
|
|
|
* The callback must accept an HttpRequest, and return an HttpResponse object.
|
|
|
|
* The callback must accept an HttpRequest, and return an HttpResponse object.
|
|
|
|
<<<<<<< HEAD:src/Core/Control.php
|
|
|
|
|
|
|
|
* @param ControlSchemaErrorResponseFactory $errorFactory an error factory to use if the request does not validate the required schema
|
|
|
|
* @param ControlSchemaErrorResponseFactory $errorFactory an error factory to use if the request does not validate the required schema
|
|
|
|
* @return HttpResponse
|
|
|
|
* @return HttpResponse
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|