Skip to content

Commit 2e52439

Browse files
committed
使用 __contruct 替换 initialize
1 parent 7bc4441 commit 2e52439

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Soli/Dispatcher.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ public function dispatch()
8484

8585
$handler = $this->container->get($handlerName);
8686

87-
// 初始化
88-
if (method_exists($handler, 'initialize')) {
89-
$handler->initialize();
90-
}
91-
9287
// 调用 Action
9388
$returnedResponse = call_user_func_array([$handler, $actionName], $params);
9489

0 commit comments

Comments
 (0)