Laravel\Lumen\Routing\Closure::formatErrorsUsing PHP Method

formatErrorsUsing() public static method

Set the error formatter callback.
public static formatErrorsUsing ( Closure $callback ) : void
$callback Closure
return void
    public static function formatErrorsUsing(BaseClosure $callback)
    {
        static::$errorFormatter = $callback;
    }