feat: "system/bootstrap.php" shows upgrade error message

This commit is contained in:
kenjis 2024-03-17 09:59:08 +09:00
parent 44583a412e
commit 842fd6eae9
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 12 additions and 4 deletions

View File

@ -13,8 +13,7 @@ declare(strict_types=1);
/** /**
* --------------------------------------------------------------- * ---------------------------------------------------------------
* * This file cannot be used. The code has moved to Boot.php.
* @deprecated 4.5.0 This file is no longer used. Moved to Boot.php.
* --------------------------------------------------------------- * ---------------------------------------------------------------
*/ */
@ -24,6 +23,13 @@ use Config\Modules;
use Config\Paths; use Config\Paths;
use Config\Services; 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 * SETUP OUR PATH CONSTANTS
@ -153,3 +159,5 @@ if (! is_file(COMPOSER_PATH)) {
*/ */
Services::autoloader()->initializeKint(CI_DEBUG); Services::autoloader()->initializeKint(CI_DEBUG);
exit(1);

View File

@ -251,6 +251,8 @@ Others
- **BaseModel:** The ``getIdValue()`` method has been changed to ``abstract``. - **BaseModel:** The ``getIdValue()`` method has been changed to ``abstract``.
- **Routing:** The :ref:`404-override` feature does change the Response status - **Routing:** The :ref:`404-override` feature does change the Response status
code to 404 by default. See :ref:`Upgrading Guide <upgrade-450-404-override>`. 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 Interface Changes
================= =================
@ -471,8 +473,6 @@ Deprecations
been moved to the ``Autoloader``. been moved to the ``Autoloader``.
- The ``configureKint()`` method has been deprecated. No longer used. It has - The ``configureKint()`` method has been deprecated. No longer used. It has
been moved to the ``Autoloader``. 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 - **Response:** The constructor parameter ``$config`` has been deprecated. No
longer used. longer used.
- **Filters:** - **Filters:**