Skip to content

Commit

Permalink
feat: "system/bootstrap.php" shows upgrade error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Mar 17, 2024
1 parent 44583a4 commit 842fd6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions system/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

/**
* ---------------------------------------------------------------
*
* @deprecated 4.5.0 This file is no longer used. Moved to Boot.php.
* This file cannot be used. The code has moved to Boot.php.
* ---------------------------------------------------------------
*/

Expand All @@ -24,6 +23,13 @@
use Config\Paths;
use Config\Services;

header('HTTP/1.1 503 Service Unavailable.', true, 503);

$message = 'This "system/bootstrap.php" is no longer used. If you are seeing this error message,
the upgrade is not complete. Please refer to the upgrade guide and complete the upgrade.
See https://codeigniter4.github.io/userguide/installation/upgrade_450.html' . PHP_EOL;
echo $message;

/*
* ---------------------------------------------------------------
* SETUP OUR PATH CONSTANTS
Expand Down Expand Up @@ -153,3 +159,5 @@
*/

Services::autoloader()->initializeKint(CI_DEBUG);

exit(1);
4 changes: 2 additions & 2 deletions user_guide_src/source/changelogs/v4.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ Others
- **BaseModel:** The ``getIdValue()`` method has been changed to ``abstract``.
- **Routing:** The :ref:`404-override` feature does change the Response status
code to 404 by default. See :ref:`Upgrading Guide <upgrade-450-404-override>`.
- **system/bootstrap.php:** This file cannot be used. The code has been moved to
the new ``CodeIgniter\Boot`` class.

Interface Changes
=================
Expand Down Expand Up @@ -471,8 +473,6 @@ Deprecations
been moved to the ``Autoloader``.
- The ``configureKint()`` method has been deprecated. No longer used. It has
been moved to the ``Autoloader``.
- **system/bootstrap.php:** This file has been deprecated. No longer used.
The code has been moved to the new ``CodeIgniter\Boot`` class.
- **Response:** The constructor parameter ``$config`` has been deprecated. No
longer used.
- **Filters:**
Expand Down

0 comments on commit 842fd6e

Please sign in to comment.