Skip to content

Commit

Permalink
Update start-swow-http.php
Browse files Browse the repository at this point in the history
  • Loading branch information
getpinga authored Mar 28, 2023
1 parent 88c43d8 commit d2ebae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start-swow-http.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@
);
$controller = new $controllerClass($app);
$serverReponse = $controller->$method(
$serverRequest
$serverRequest, $vars
);
} elseif (is_array($handler)) {
[$controllerClass, $method] = $handler;
$controller = new $controllerClass($app);
$serverReponse = $controller->$method(
$serverRequest
$serverRequest, $vars
);
} else {
$serverReponse = $handler($serverRequest);
Expand Down

0 comments on commit d2ebae6

Please sign in to comment.