[6.1] use DatabaseFactory in DatabaseServiceProvider#45057
[6.1] use DatabaseFactory in DatabaseServiceProvider#45057heelc29 wants to merge 11 commits intojoomla:6.1-devfrom
Conversation
|
Failing CI related to #45059 |
Co-Authored-By: Oleg Voronkovich <oleg-voronkovich@yandex.ru>
|
Hi @heelc29, I might be doing something incorrectly or the testing instructions are incomplete or I couldn't replicate the BEFORE condition as I could not find in the Deprecated.php log any mention of Call to deprecated method getInstance() of class You night want to update your Testing Instructions to advise the turn: Log Deprecated API in Global Configuration if that is where a tester is supposed to find this information... |
Hi @exlemor sorry that I was a bit unclear in the description ... this message comes from phpstan in drone ci, I saw it also with XDebug.
Strangely, it is not logged here - probably because it is in the service provider? |
|
Update more Also add system test for config cli command |
5f8e76b to
893cb7b
Compare
|
This pull request has been automatically rebased to 5.4-dev. |
|
This pull request has been automatically rebased to 6.1-dev. |
|
@heelc29 the system test error seems to be related. |

Summary of Changes
DatabaseDriver::getInstanceis deprecated and should be replaced withDatabaseFactory->getDriver()https://github.com/joomla-framework/database/blob/d13a7504471b4730a8107e3566c6fe6d476706fc/src/DatabaseDriver.php#L269-L288
Testing Instructions
install Joomla and visit frontend/backend and see if you can do anything (connection to database is present)
Actual result BEFORE applying this Pull Request
Warning in deprecated log:
DatabaseDriver::getInstanceis deprecated and will be removed in 3.0, useDatabaseFactory::getDriver()instead.Expected result AFTER applying this Pull Request
Warning gone
Link to documentations
Please select: