Skip to content

Commit

Permalink
refactor: move callExit() to index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 9, 2023
1 parent f6bf3d2 commit 7b45987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@
*/

$app->run();

// Exits the application, setting the exit code for CLI-based applications
// that might be watching.
exit(EXIT_SUCCESS);
3 changes: 2 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon
}

$this->sendResponse();
$this->callExit(EXIT_SUCCESS);
}

/**
Expand Down Expand Up @@ -1088,6 +1087,8 @@ protected function sendResponse()
* without actually stopping script execution.
*
* @param int $code
*
* @deprecated 4.4.0 No longer Used. Moved to index.php.
*/
protected function callExit($code)
{
Expand Down

0 comments on commit 7b45987

Please sign in to comment.