FinalTestNonTerminableHttpMiddlewareClass.php
Same filename in other branches
Namespace
Drupal\Tests\Core\DependencyInjection\FixtureFile
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Fixture/ FinalTestNonTerminableHttpMiddlewareClass.php
View source
<?php
namespace Drupal\Tests\Core\DependencyInjection\Fixture;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
/**
* Stub of http_middleware class that is declared final but is not terminable.
*/
final class FinalTestNonTerminableHttpMiddlewareClass implements HttpKernelInterface {
/**
* {@inheritdoc}
*/
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = TRUE) : Response {
return new Response();
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FinalTestNonTerminableHttpMiddlewareClass | Stub of http_middleware class that is declared final but is not terminable. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.