PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
23 May 2024

Summary of Changes

The call to Factory::getDbo() is deprecated. This PR replaces that with calls to the DI container.

Testing Instructions

Codereview

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 23 May 2024
avatar Hackwar Hackwar - change - 23 May 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2024
Category Administration com_admin com_associations com_banners com_categories com_config com_contact com_content com_contenthistory com_fields com_finder com_installer com_languages com_login com_menus com_modules com_newsfeeds com_plugins com_redirect com_templates
avatar Hackwar Hackwar - change - 23 May 2024
Labels Added: PR-5.2-dev
avatar richard67
richard67 - comment - 23 May 2024

@Hackwar I think unit tests are failing at places where the isMariaDb method of the MySQL drivers are used because this method is not part of the database interface.

Update: It seems unit tests are failing for a different reason. The isMariaDb method we use only in file installation/src/Helper/DatabaseHelper.php.

avatar HLeithner
HLeithner - comment - 16 Jul 2024

As already discussed, this is not a solution it only fixes the syndrome (Deprecation warning). So for now I rebase this for 6.0 and hope that we don't need this pr and have a proper solution for all situations.

avatar HLeithner HLeithner - change - 16 Jul 2024
Title
[5.2] Replacing getDbo() with call to container
[6.0] Replacing getDbo() with call to container
avatar HLeithner HLeithner - edited - 16 Jul 2024
avatar laoneo laoneo - change - 14 Aug 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-08-14 11:01:34
Closed_By laoneo
Labels Added: PR-6.0-dev
Removed: PR-5.2-dev
avatar laoneo
laoneo - comment - 14 Aug 2024

I'm closing this as the target is to remove the static calls at all.

avatar laoneo laoneo - close - 14 Aug 2024

Add a Comment

Login with GitHub to post a comment