ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/laravel/passport/src/Http/Controllers/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/laravel/passport/src/Http/Controllers/ConvertsPsrResponses.php

<?php

namespace Laravel\Passport\Http\Controllers;

use Illuminate\Http\Response;

trait ConvertsPsrResponses
{
    /**
     * Convert a PSR7 response to a Illuminate Response.
     *
     * @param  \Psr\Http\Message\ResponseInterface  $psrResponse
     * @return \Illuminate\Http\Response
     */
    public function convertResponse($psrResponse)
    {
        return new Response(
            $psrResponse->getBody(),
            $psrResponse->getStatusCode(),
            $psrResponse->getHeaders()
        );
    }
}

Zerion Mini Shell 1.0