refactor: remove realpath()

No need to use it.
This commit is contained in:
kenjis 2022-05-07 12:51:32 +09:00
parent f26943cfd8
commit 1adabfe043
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 4 additions and 4 deletions

View File

@ -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
View File

@ -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();