This commit is contained in:
2023-04-16 01:24:30 +08:00
parent bf9b84563e
commit 91af6b3a5f
68 changed files with 115 additions and 79 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
<?php
declare(strict_types=1);
namespace Kiri\Router\Base;
use Kiri\Message\Constrict\ResponseInterface;
use Psr\Http\Message\ResponseInterface;
class NotFoundController extends Controller
{
@@ -13,7 +15,7 @@ class NotFoundController extends Controller
*/
public function fail(): ResponseInterface
{
return $this->response->failure(404, "not found page.");
return $this->response->withStatus(404, "not found page.");
}
}