Welcome Guest, Not a member yet? Register   Sign In
Support for psr/log:^2.0
#5

(07-17-2024, 10:55 AM)mteall Wrote: However, I just pulled down the codeigniter4/framework repo down locally to check it out and found something I didn't expect.  It appears Codeigniter4 actually overrides psr/log with it's own copy located in system/ThirdParty/PSR/Log via the AutoloadConfig class (system/Config/AutoloadConfig.php).  It appears to be a copy of psr/log 3.0 in v4.5.0, and psr/log 1.X in v4.4.8, which makes sense, based off the requirement in composer.json.  Based on the comments, it looks like this was done for a slight autoloading performance enhancement for these frequently used classes.

Slightly different. "system/ThirdParty/PSR/Log" is used only when Composer is not used.
Remember CodeIgniter4 still supports Zip installations, and it depends on psr/log.
So we need the copy for Zip installations.
Reply


Messages In This Thread
Support for psr/log:^2.0 - by mteall - 07-17-2024, 01:37 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 03:54 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 04:10 AM
RE: Support for psr/log:^2.0 - by mteall - 07-17-2024, 10:55 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 01:11 PM
RE: Support for psr/log:^2.0 - by mteall - 07-17-2024, 01:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB