-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: move Kint loading to Autoloader #8603
Conversation
800a39a
to
0d70fb8
Compare
👋 Hi, @kenjis! |
0d70fb8
to
6ca5c66
Compare
6ca5c66
to
2df2f93
Compare
define('TESTPATH', realpath(rtrim($paths->testsDirectory, '\\/ ')) . DIRECTORY_SEPARATOR); | ||
} | ||
|
||
/* | ||
* --------------------------------------------------------------- | ||
* GRAB OUR CONSTANTS & COMMON | ||
* GRAB OUR CONSTANTS | ||
* --------------------------------------------------------------- | ||
*/ | ||
|
||
if (! defined('APP_NAMESPACE')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this always be defined because it was required for the Autoloader?
public $psr4 = [
APP_NAMESPACE => APPPATH, // For custom app namespace
'Config' => APPPATH . 'Config',
];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is defined in app/Config/Constants.php
.
The value is set by phpnit.xml.dist, and there is no need to change baseURL.
It is done in `Services::autoload()->initialize()`.
This was in CodeIgniter::initialize(), so it was called only in web.
CONFIGPATH was not defined yet.
Co-authored-by: MGatner <[email protected]>
Co-authored-by: MGatner <[email protected]>
b5dea64
to
458333c
Compare
Description
Supersedes #8558
CodeIgniter::initializeKint()
to AutoloaderCodeIgniter::initializeKint()
registers an autoloader. So it is better to be in Autoloader.The following items are also needed, so included in this PR:
CodeIgniter::bootstrapEnvironment()
to bootstrap.phpServices::exceptions()->initialize()
to bootstrap.phpCodeIgniter::resolvePlatformExtensions()
to bootstrap.phpChecklist: