Skip to content

Commit

Permalink
Add exit code (Extract from spiral/app#41 PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Jun 29, 2021
1 parent 37b961e commit 7e0517e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
$app = App::init(['root' => __DIR__]);

if ($app !== null) {
$app->serve();
$code = (int)$app->serve();
exit($code);
}

0 comments on commit 7e0517e

Please sign in to comment.