Skip to content

Commit b9fd06d

Browse files
committed
路由绑定到命名空间的时候支持控制器后缀
1 parent 0d37237 commit b9fd06d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/think/route/RuleGroup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ protected function bindToNamespace(Request $request, string $url, string $namesp
613613
$array = explode('/', $url, 3);
614614
$class = !empty($array[0]) ? $array[0] : $this->config('default_controller');
615615
$method = !empty($array[1]) ? $array[1] : $this->config('default_action');
616+
$class .= $this->config('controller_suffix') ? 'Controller' : '';
616617

617618
if (!empty($array[2])) {
618619
$this->parseUrlParams($array[2], $param);

0 commit comments

Comments
 (0)