class TestClosureHttpMiddlewareClass
Stub of http_middleware class taking a service closure for the inner kernel.
Hierarchy
- class \Drupal\Tests\Core\DependencyInjection\Fixture\TestClosureHttpMiddlewareClass implements \Symfony\Component\HttpKernel\HttpKernelInterface
Expanded class hierarchy of TestClosureHttpMiddlewareClass
1 file declares its use of TestClosureHttpMiddlewareClass
- StackedKernelPassTest.php in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ StackedKernelPassTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Fixture/ TestClosureHttpMiddlewareClass.php, line 14
Namespace
Drupal\Tests\Core\DependencyInjection\FixtureView source
class TestClosureHttpMiddlewareClass implements HttpKernelInterface {
public function __construct(protected readonly \Closure $inner) {
}
/**
* {@inheritdoc}
*/
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = TRUE) : Response {
return new Response();
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| TestClosureHttpMiddlewareClass::handle | public | function | |
| TestClosureHttpMiddlewareClass::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.