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

来源:互联网 发布:淘宝蓝冠店值多少钱 编辑:程序博客网 时间:2024/04/29 20:55
<?phpnamespace 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
0 0
原创粉丝点击