class TestHttpKernel

Same name in this branch

Hierarchy

Expanded class hierarchy of TestHttpKernel

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php, line 20

Namespace

Symfony\Component\HttpKernel\Tests
View source
class TestHttpKernel extends HttpKernel implements ControllerResolverInterface {
  public function __construct() {
    parent::__construct(new EventDispatcher(), $this);
  }
  public function getController(Request $request) {
    return array(
      $this,
      'callController',
    );
  }
  public function getArguments(Request $request, $controller) {
    return array(
      $request,
    );
  }
  public function callController(Request $request) {
    return new Response('Request: ' . $request
      ->getRequestUri());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpKernel::$dispatcher protected property
HttpKernel::$resolver protected property
HttpKernel::filterResponse private function Filters a response object.
HttpKernel::handle public function Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle 3
HttpKernel::handleException private function Handles and exception by trying to convert it to a Response.
HttpKernel::handleRaw private function Handles a request to convert it to a response.
HttpKernel::terminate public function @api Overrides TerminableInterface::terminate
HttpKernel::varToString private function
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant
TestHttpKernel::callController public function
TestHttpKernel::getArguments public function Returns the arguments to pass to the controller. Overrides ControllerResolverInterface::getArguments
TestHttpKernel::getController public function Returns the Controller instance associated with a Request. Overrides ControllerResolverInterface::getController
TestHttpKernel::__construct public function Constructor Overrides HttpKernel::__construct