PHP Class Symfony\Component\HttpKernel\Event\FilterResponseEvent

You can call getResponse() to retrieve the current response. With setResponse() you can set a new response that will be returned to the browser.
Author: Bernhard Schussek ([email protected])
Inheritance: extends KernelEvent
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Response $response )
getResponse ( ) : Response Returns the current response object
setResponse ( Response $response ) Sets a new response object

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Response $response )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

getResponse() public method

Returns the current response object
public getResponse ( ) : Response
return Symfony\Component\HttpFoundation\Response

setResponse() public method

Sets a new response object
public setResponse ( Response $response )
$response Symfony\Component\HttpFoundation\Response