User tests: Successful: Unsuccessful:
A straight replacement of Factory::getConfig()
with Factory::getApplication()->get()
and $app->get()
etc..
44 instances across 22 files
Implements the change instructed in the @deprecated
notes throughout Joomla 4
Apply PR - browse around - nothing should be broken.
Enabling System debug plugin with all options enabled to log all things and deprecated
Note that Factory::getConfig in libraries/src/Log/Logger/FormattedtextLogger.php is logged in the deprecated-core
tab
Everything still works, no deprecated notices in the debug log deprecated-core
tabs
Nothing should break as the changes are swapping apples for apples from another store.
none
@wilsonge I have gone through each line, selecting an appropriate method of getting the config I believe. I reuse $app
or $this->app
where Factory::getApplication
has already been called.
@infograf768 There is a complexity in the Language Installer, Please can I ask you to look over that change that includes reloading the configuration and injecting it back into the application in https://github.com/joomla/joomla-cms/pull/29854/files#diff-14ba76332f3c8fb4af43ae3d16937a2bR72 I have no idea if this even works so it needs real life testing, and I dont know how to test that with Joomla 4 languages?!
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_config com_finder com_menus CLI Front End Installation Libraries Plugins |
Title |
|
@ceford Have you tested a clean install including languages?
#29854 (comment)
Thanks for testing, I'll be back on this shortly today.
Labels |
Added:
?
|
Ok I have wrapped the call with file_exists
, this seems to work as the override of the configuration is only needed after creation of the configuration.php file anyway (it seems). Please test :-) and thanks for your time.
I neglected to set Debug to Yes in my previous test. Having done that it still passes. No deprecations with the patch applied, plenty with.
Something is going on where it constantly logs me out just navigating around in the administration area. Nothing in PHP error log.
Cool I’ll test that when next at my desk - thanks for testing. I can’t say I experienced that myself in my initial testing.
Something is going on where it constantly logs me out just navigating around in the administration area. Nothing in PHP error log.
Sorry I have been unable to replicate that in the last hour...
Looks like working here. I am not logged out.
I have tested this item
Tested successfully in Beta3-dev of 5 July. Only one deprecated message when a new user was created from the back end.
@infograf768 if you could mark your test as successful then we are closer to RTC please :) :)
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
I have tested this item
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-25 18:35:09 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
I have tested this item✅ successfully on dc1a542
I did not find log entries - maybe my logging is not set up properly or I did not trigger the calls. However I searched for Factory::getConfig with and without the patch. Without the patch there were plenty. With the patch only one, in com_patchtester. So I think this justifies a pass.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29854.