升级到5132版本

This commit is contained in:
巴掌 committed 2018-12-27 14:22:08 +08:00
1 parent c30a3a640c
commit 48f169b0ae
24 files changed
+206 -65

No files matched your search

@@ -69,10 +69,6 @@ class Module extends Dispatch
// 获取控制器名
$controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
$this->controller = $convert ? strtolower($controller) : $controller;
// 获取操作名
@@ -97,10 +93,6 @@ class Module extends Dispatch
$this->rule->getConfig('url_controller_layer'),
$this->rule->getConfig('controller_suffix'),
$this->rule->getConfig('empty_controller'));
if ($instance instanceof Controller) {
$instance->registerMiddleware();
}
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}