? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
29 Jun 2020

Summary of Changes

A straight replacement of Factory::getConfig() with Factory::getApplication()->getConfig()

44 instances across 22 files

Implements the change instructed in the @deprecated notes throughout Joomla 4

Testing Instructions

Apply PR - browse around - nothing should be broken.

Actual result BEFORE applying this Pull Request

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

Expected result AFTER applying this Pull Request

Everything still works, no deprecated notices in the debug log deprecated-core tabs

Documentation Changes Required

none

avatar PhilETaylor PhilETaylor - open - 29 Jun 2020
avatar PhilETaylor PhilETaylor - change - 29 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jun 2020
Category Administration com_config com_finder com_menus CLI Front End Installation Libraries Plugins
avatar PhilETaylor PhilETaylor - change - 29 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 29 Jun 2020
avatar PhilETaylor PhilETaylor - change - 29 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 29 Jun 2020
avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

So basically they are all wrong and you want to be running ->get directly on getApplication and not first getting the getConfig ?

avatar wilsonge
wilsonge - comment - 29 Jun 2020

Unless you need the full config object yes (there's a handful of places where we're performing multiple operations which i guess should be fine using getConfig)

avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

ok if you want it that way - closing this and will make a new clean PR in the morning

avatar PhilETaylor PhilETaylor - change - 29 Jun 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-06-29 21:37:32
Closed_By PhilETaylor
Labels Added: ?
avatar PhilETaylor PhilETaylor - close - 29 Jun 2020
avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

I was just going by the Deprecated help text

'%s() is deprecated. The configuration object should be read from the application.',

I was accessing the configuration object from the application ;-)

I guess that's open to interpretation :)

avatar toivo toivo - test_item - 29 Jun 2020 - Tested successfully
avatar toivo
toivo - comment - 29 Jun 2020

I have tested this item successfully on e23e318

Tested successfully in Beta2-dev of 29 June.

Wampserver 3.2.2 Apache 2.4.43 MySQL 8.0.20 PHP 7.4.7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29842.

avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

Thanks for testing @toivo but this PR has been closed and I'll open a new one tomorrow with the requested changes George has asked for

Add a Comment

Login with GitHub to post a comment