for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jade/jade package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Jade\HttpKernel\Event;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Jade\HttpKernel\HttpKernel;
class PostResponseEvent extends KernelEvent
{
protected $response;
public function __construct(HttpKernel $kernel, ServerRequestInterface $request, ResponseInterface $response)
parent::__construct($kernel, $request);
$this->response = $response;
}
/**
* 返回当前处理得到的response
* @return ResponseInterface
public function getResponse()
return $this->response;