mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: remove realpath()
No need to use it.
This commit is contained in:
parent
f26943cfd8
commit
1adabfe043
@ -22,14 +22,14 @@ chdir(__DIR__);
|
||||
$pathsConfig = FCPATH . '../app/Config/Paths.php';
|
||||
// ^^^ Change this if you move your application folder
|
||||
|
||||
require realpath($pathsConfig) ?: $pathsConfig;
|
||||
require $pathsConfig;
|
||||
|
||||
$paths = new Config\Paths();
|
||||
|
||||
// Location of the framework bootstrap file.
|
||||
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
|
||||
|
||||
require realpath($bootstrap) ?: $bootstrap;
|
||||
require $bootstrap;
|
||||
|
||||
/*
|
||||
* ---------------------------------------------------------------
|
||||
|
4
spark
4
spark
@ -51,7 +51,7 @@ define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR)
|
||||
$pathsConfig = 'app/Config/Paths.php';
|
||||
// ^^^ Change this line if you move your application folder
|
||||
|
||||
require realpath($pathsConfig) ?: $pathsConfig;
|
||||
require $pathsConfig;
|
||||
|
||||
$paths = new Config\Paths();
|
||||
|
||||
@ -60,7 +60,7 @@ chdir(FCPATH);
|
||||
|
||||
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
|
||||
|
||||
require realpath($bootstrap) ?: $bootstrap;
|
||||
require $bootstrap;
|
||||
|
||||
$app = Services::codeigniter();
|
||||
$app->initialize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user