interface HttpKernelInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/HttpKernelInterface.php \Symfony\Component\HttpKernel\HttpKernelInterface
HttpKernelInterface handles a Request to convert it to a Response.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Symfony\Component\HttpKernel\HttpKernelInterface
Expanded class hierarchy of HttpKernelInterface
All classes that implement HttpKernelInterface
65 files declare their use of HttpKernelInterface
- AcceptHeaderMiddleware.php in core/
modules/ system/ tests/ modules/ accept_header_routing_test/ src/ AcceptHeaderMiddleware.php - Contains \Drupal\accept_header_routing_test\AcceptHeaderMiddleware.
- AjaxResponseTest.php in core/
tests/ Drupal/ Tests/ Core/ Ajax/ AjaxResponseTest.php - Contains \Drupal\Tests\Core\Ajax\AjaxResponseTest.
- AuthenticationSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ AuthenticationSubscriber.php - Contains \Drupal\Core\EventSubscriber\AuthenticationSubscriber.
- BanMiddleware.php in core/
modules/ ban/ src/ BanMiddleware.php - Contains \Drupal\ban\BanMiddleware.
- BanMiddlewareTest.php in core/
modules/ ban/ tests/ src/ Unit/ BanMiddlewareTest.php - Contains \Drupal\Tests\ban\Unit\BanMiddlewareTest.
File
- vendor/
symfony/ http-kernel/ HttpKernelInterface.php, line 22
Namespace
Symfony\Component\HttpKernelView source
interface HttpKernelInterface {
const MASTER_REQUEST = 1;
const SUB_REQUEST = 2;
/**
* Handles a Request to convert it to a Response.
*
* When $catch is true, the implementation must catch all exceptions
* and do its best to convert them to a Response instance.
*
* @param Request $request A Request instance
* @param int $type The type of the request
* (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param bool $catch Whether to catch exceptions or not
*
* @return Response A Response instance
*
* @throws \Exception When an Exception occurs during processing
*/
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpKernelInterface:: |
public | function | Handles a Request to convert it to a Response. | 20 |
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant |