您的位置:首页 > 理论基础 > 计算机网络

[李景山php]每天laravel-20161015|HttpResponseWxception.php-15

2016-08-18 09:05 435 查看
<?php

namespace Illuminate\Http\Exception;

use RuntimeException;
use Symfony\Component\HttpFoundation\Response;

class HttpResponseException extends RuntimeException
{
/**
* The underlying response instance.
*
* @var \Symfony\Component\HttpFoundation\Response
*/
protected $response;

/**
* Create a new HTTP response exception instance.
*
* @param  \Symfony\Component\HttpFoundation\Response  $response
* @return void
*/
public function __construct(Response $response)
{
$this->response = $response;
}

/**
* Get the underlying response instance.
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function getResponse()
{
return $this->response;
}
}// get the response
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: