Skip to content
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

Merged
merged 22 commits into from
Mar 16, 2024

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Mar 3, 2024

Description
Supersedes #8558

The following items are also needed, so included in this PR:

  • move CodeIgniter::bootstrapEnvironment() to bootstrap.php
  • move Services::exceptions()->initialize() to bootstrap.php
  • move CodeIgniter::resolvePlatformExtensions() to bootstrap.php

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis kenjis added bug Verified issues on the current code behavior or pull requests that will fix them 4.5 labels Mar 3, 2024
@kenjis kenjis force-pushed the fix-move-kint-autoload branch 2 times, most recently from 800a39a to 0d70fb8 Compare March 4, 2024 00:33
@kenjis kenjis added the breaking change Pull requests that may break existing functionalities label Mar 4, 2024
Copy link

github-actions bot commented Mar 7, 2024

👋 Hi, @kenjis!

We detected conflicts in your PR against the base branch 🙊
You may want to sync 🔄 your branch with upstream!

Ref: Syncing Your Branch

@github-actions github-actions bot added the stale Pull requests with conflicts label Mar 7, 2024
@kenjis kenjis removed the stale Pull requests with conflicts label Mar 7, 2024
@kenjis
Copy link
Member Author

kenjis commented Mar 11, 2024

This is the first PR of a story.
See the next #8604, #8605, and #8610.

public/index.php Show resolved Hide resolved
system/Autoloader/Autoloader.php Show resolved Hide resolved
system/Test/bootstrap.php Outdated Show resolved Hide resolved
system/Test/bootstrap.php Outdated Show resolved Hide resolved
system/Test/bootstrap.php Show resolved Hide resolved
define('TESTPATH', realpath(rtrim($paths->testsDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
}

/*
* ---------------------------------------------------------------
* GRAB OUR CONSTANTS & COMMON
* GRAB OUR CONSTANTS
* ---------------------------------------------------------------
*/

if (! defined('APP_NAMESPACE')) {
Copy link
Member

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',
];

Copy link
Member Author

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.

@kenjis kenjis merged commit b50cfbd into codeigniter4:4.5 Mar 16, 2024
47 checks passed
@kenjis kenjis deleted the fix-move-kint-autoload branch March 16, 2024 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.5 breaking change Pull requests that may break existing functionalities bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants