From 5b30f718e7af6ae562aed8bb93ecb0f67c36bfa6 Mon Sep 17 00:00:00 2001 From: walkor Date: Wed, 19 Oct 2022 21:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/{Index.php => IndexController.php} | 2 +- config/app.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/controller/{Index.php => IndexController.php} (94%) diff --git a/app/controller/Index.php b/app/controller/IndexController.php similarity index 94% rename from app/controller/Index.php rename to app/controller/IndexController.php index ed33c4f..31e1c43 100644 --- a/app/controller/Index.php +++ b/app/controller/IndexController.php @@ -4,7 +4,7 @@ use support\Request; -class Index +class IndexController { public function index(Request $request) { diff --git a/config/app.php b/config/app.php index 982871b..f26e358 100644 --- a/config/app.php +++ b/config/app.php @@ -21,6 +21,6 @@ 'request_class' => Request::class, 'public_path' => base_path() . DIRECTORY_SEPARATOR . 'public', 'runtime_path' => base_path(false) . DIRECTORY_SEPARATOR . 'runtime', - 'controller_suffix' => '', + 'controller_suffix' => 'Controller', 'controller_reuse' => false, ];