PHP Interface Symfony\Component\HttpKernel\HttpKernelInterface

Author: Fabien Potencier ([email protected])
Exibir arquivo Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response Handles a Request to convert it to a Response.
handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response Handles a Request to convert it to a Response.

Method Details

handle() public method

When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.
public handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response
$request Symfony\Component\HttpFoundation\Request A Request instance
$type integer The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
$catch boolean Whether to catch exceptions or not
return Response A Response instance

handle() public method

When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.
public handle ( Request $request, integer $type = self::MASTER_REQUEST, boolean $catch = true ) : Response
$request Symfony\Component\HttpFoundation\Request A Request instance
$type integer The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
$catch boolean Whether to catch exceptions or not
return Symfony\Component\HttpFoundation\Response A Response instance