Final Class Yiisoft\Yii\Debug\Viewer\NotFoundHandler
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| handle() | Yiisoft\ |
Method Details
| public mixed __construct ( \ | ||
| $formatter | \ |
|
| $dataResponseFactory | \ |
|
public function __construct(
private DataResponseFormatterInterface $formatter,
private DataResponseFactoryInterface $dataResponseFactory,
) {}
| public \ | ||
| $request | \ |
|
public function handle(ServerRequestInterface $request): ResponseInterface
{
return $this->formatter->format(
$this->dataResponseFactory->createResponse('Page not found', Status::NOT_FOUND),
);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.