Final Class Yiisoft\Yii\Http\Handler\UnhandledRequestHandler
| Inheritance | Yiisoft\Yii\Http\Handler\UnhandledRequestHandler |
|---|---|
| Implements | Psr\Http\Server\RequestHandlerInterface |
Handler that throws a RuntimeException when invoked.
Used as a default fallback handler when none is provided.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| handle() | Yiisoft\Yii\Http\Handler\UnhandledRequestHandler |
Method Details
| public \Psr\Http\Message\ResponseInterface handle ( \Psr\Http\Message\ServerRequestInterface $request ) | ||
| $request | \Psr\Http\Message\ServerRequestInterface | |
| throws | RuntimeException | |
|---|---|---|
public function handle(ServerRequestInterface $request): ResponseInterface
{
throw new RuntimeException('No response was generated.');
}
Signup or Login in order to comment.