You are here

interface HttpKernelInterface in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

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.

... See full list

File

vendor/symfony/http-kernel/HttpKernelInterface.php, line 22

Namespace

Symfony\Component\HttpKernel
View 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

Namesort descending Modifiers Type Description Overrides
HttpKernelInterface::handle public function Handles a Request to convert it to a Response. 20
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant