PHP Interface Symfony\Component\HttpKernel\HttpKernelInterface

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

Méthodes publiques

Méthode 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 méthode

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
Résultat Response A Response instance

handle() public méthode

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
Résultat Symfony\Component\HttpFoundation\Response A Response instance