update Codeigniter 4.7.3
This commit is contained in:
11
spark
11
spark
@@ -10,6 +10,9 @@
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use CodeIgniter\Boot;
|
||||
use Config\Paths;
|
||||
|
||||
/*
|
||||
* --------------------------------------------------------------------
|
||||
* CODEIGNITER COMMAND-LINE TOOLS
|
||||
@@ -35,12 +38,12 @@ if (str_starts_with(PHP_SAPI, 'cgi')) {
|
||||
*---------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$minPhpVersion = '8.1'; // If you update this, don't forget to update `public/index.php`.
|
||||
$minPhpVersion = '8.2'; // If you update this, don't forget to update `public/index.php`.
|
||||
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
|
||||
$message = sprintf(
|
||||
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
|
||||
$minPhpVersion,
|
||||
PHP_VERSION
|
||||
PHP_VERSION,
|
||||
);
|
||||
|
||||
exit($message);
|
||||
@@ -76,9 +79,9 @@ chdir(FCPATH);
|
||||
require FCPATH . '../smarthome/app/Config/Paths.php';
|
||||
// ^^^ Change this line if you move your application folder
|
||||
|
||||
$paths = new Config\Paths();
|
||||
$paths = new Paths();
|
||||
|
||||
// LOAD THE FRAMEWORK BOOTSTRAP FILE
|
||||
require $paths->systemDirectory . '/Boot.php';
|
||||
|
||||
exit(CodeIgniter\Boot::bootSpark($paths));
|
||||
exit(Boot::bootSpark($paths));
|
||||
|
||||
Reference in New Issue
Block a user