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

buildResponseUsing() public static method

Set the response builder callback.
public static buildResponseUsing ( Closure $callback ) : void
$callback Closure
return void
    public static function buildResponseUsing(BaseClosure $callback)
    {
        static::$responseBuilder = $callback;
    }