public function createResponseFactory(Api $api)
    {
        return new Responses(
            $this,
            $api,
            $this->container->make(Route::class),
            $this->container->make('json-api.exceptions')
        );
    }
public function createResponseFactory(Api $api)
    {
        return new Responses(
            $this,
            $api,
            $this->container->make(Route::class),
            $this->container->make('json-api.exceptions')
        );
    }
public function createResponseFactory ( Api $ api ) { return new Responses ( $ this , $ api , $ this -> container -> make ( Route :: class ) , $ this -> container -> make ( 'json-api.exceptions' ) ) ; }
Create a response factory.

@param Api $api
@return Responses
Create a response factory .