function TestClosureHttpMiddlewareClass::handle

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/TestClosureHttpMiddlewareClass.php \Drupal\Tests\Core\DependencyInjection\Fixture\TestClosureHttpMiddlewareClass::handle()

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/TestClosureHttpMiddlewareClass.php, line 22

Class

TestClosureHttpMiddlewareClass
Stub of http_middleware class taking a service closure for the inner kernel.

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture

Code

public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = TRUE) : Response {
  return new Response();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.