PHP Class Laravel\Lumen\Routing\Closure

Inheritance: use trait DispatchesJobs, use trait Laravel\Lumen\Routing\ValidatesRequests
Show file Open project: ctrlaltdylan/MirrorMirror

Protected Properties

Property Type Description
$errorFormatter Closure The error formatter callback.
$responseBuilder Closure The response builder callback.

Public Methods

Method Description
baseBuildFailedValidationResponse ( )
baseFormatValidationErrors ( )
buildResponseUsing ( Closure $callback ) : void Set the response builder callback.
formatErrorsUsing ( Closure $callback ) : void Set the error formatter callback.

Protected Methods

Method Description
buildFailedValidationResponse ( Illuminate\Http\Request $request, array $errors )
formatValidationErrors ( Illuminate\Validation\Validator $validator )

Method Details

baseBuildFailedValidationResponse() public method

baseFormatValidationErrors() public method

buildFailedValidationResponse() protected method

protected buildFailedValidationResponse ( Illuminate\Http\Request $request, array $errors )
$request Illuminate\Http\Request
$errors array

buildResponseUsing() public static method

Set the response builder callback.
public static buildResponseUsing ( Closure $callback ) : void
$callback Closure
return void

formatErrorsUsing() public static method

Set the error formatter callback.
public static formatErrorsUsing ( Closure $callback ) : void
$callback Closure
return void

formatValidationErrors() protected method

protected formatValidationErrors ( Illuminate\Validation\Validator $validator )
$validator Illuminate\Validation\Validator

Property Details

$errorFormatter protected static property

The error formatter callback.
protected static Closure,Laravel\Lumen\Routing $errorFormatter
return Closure

$responseBuilder protected static property

The response builder callback.
protected static Closure,Laravel\Lumen\Routing $responseBuilder
return Closure