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, ];