Skip to content

Commit

Permalink
#2 in work
Browse files Browse the repository at this point in the history
  • Loading branch information
v-dem committed Jul 20, 2022
1 parent 6e8edd9 commit b4eb4f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ public function run()
$handler = array($controller, $method);
}


$closure = function() use($handler, $arguments) {
return System::callUserFuncArray($handler, $arguments);
};

$output = System::callUserFuncArray($handler, $arguments);
$output = $closure();

return (!is_string($output) && method_exists($this->request, 'isAjax') && $this->request->isAjax())
? json_encode($output)
Expand Down

0 comments on commit b4eb4f5

Please sign in to comment.