mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
feat: "system/bootstrap.php" shows upgrade error message
This commit is contained in:
parent
44583a412e
commit
842fd6eae9
@ -13,8 +13,7 @@ declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* ---------------------------------------------------------------
|
||||
*
|
||||
* @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.
|
||||
* ---------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@ -24,6 +23,13 @@ use Config\Modules;
|
||||
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
|
||||
@ -153,3 +159,5 @@ if (! is_file(COMPOSER_PATH)) {
|
||||
*/
|
||||
|
||||
Services::autoloader()->initializeKint(CI_DEBUG);
|
||||
|
||||
exit(1);
|
||||
|
@ -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
|
||||
=================
|
||||
@ -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:**
|
||||
|
Loading…
x
Reference in New Issue
Block a user