Skip to content

Commit 7b45987

Browse files
committed
refactor: move callExit() to index.php
1 parent f6bf3d2 commit 7b45987

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

public/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@
6767
*/
6868

6969
$app->run();
70+
71+
// Exits the application, setting the exit code for CLI-based applications
72+
// that might be watching.
73+
exit(EXIT_SUCCESS);

system/CodeIgniter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon
372372
}
373373

374374
$this->sendResponse();
375-
$this->callExit(EXIT_SUCCESS);
376375
}
377376

378377
/**
@@ -1088,6 +1087,8 @@ protected function sendResponse()
10881087
* without actually stopping script execution.
10891088
*
10901089
* @param int $code
1090+
*
1091+
* @deprecated 4.4.0 No longer Used. Moved to index.php.
10911092
*/
10921093
protected function callExit($code)
10931094
{

0 commit comments

Comments
 (0)