Aimeos\Shop\Controller\JsonadmController::createResponse PHP Method

createResponse() protected method

Creates a new response object
protected createResponse ( string $content, integer $status, array $header ) : Illuminate\Http\Response
$content string Body of the HTTP response
$status integer HTTP status
$header array List of HTTP headers
return Illuminate\Http\Response HTTP response object
    protected function createResponse($content, $status, array $header)
    {
        $response = Response::make($content, $status);
        foreach ($header as $key => $value) {
            $response->header($key, $value);
        }
        return $response;
    }