Skip to content

Commit 9f4e0cd

Browse files
committed
Remove a unuse check
1 parent 387d653 commit 9f4e0cd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Http/Dispatcher.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,6 @@ public function dispatch(Request $request, Response $response) {
245245
$code = self::isValid($module, $controller, $action);
246246
if ($code === self::ROUTE_VALID) {
247247
$className = EntryUtil::controller($module, $controller);
248-
if (!Container::getInstance()->has($className)) {
249-
return self::ROUTE_ERR_CONTROLLER;
250-
}
251248
$clazz = Container::getInstance()->get($className);
252249
$actionName = $action . 'Action';
253250
$clazz->$actionName($request, $response);

0 commit comments

Comments
 (0)