
Problem/Motivation
In #3217531: Deprecate usage of Connection::getDriverClass for some classes, and use standard autoloading instead, usage of Connection::getDriverClass()
was deprecated for several classes. Connection::getDriverClass()
cannot be deprecated itself since there are more cases where it's in use.
Proposed resolution
In this issue, deprecate usage of Connection::getDriverClass for 'Install\Tasks' calls.
Then, in #3217699: Convert select query extenders to backend-overrideable services it should be possible to finally deprecate the method.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3375919
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3375919-deprecate-usage-of
changes, plain diff MR !4427
Comments
Comment #2
mondrakeComment #4
mondrakeSimple change. It's not worth adding a convenience method in Connection in this case, since the Tasks class gets instantiated directly without connection by the installation routines. Could think of a static method, but that would be a bigger change.
Comment #5
daffie CreditAttribution: daffie at Finalist commentedAll code changes look good.
Just one more class added to the conditional deprecation of
Connection::getDriverClass
For me it is RTBC.
The following text needs to be added to the CR:
Comment #7
longwaveCommitted e807300 and pushed to 11.x. Thanks!
Comment #9
daffie CreditAttribution: daffie at Finalist commentedUpdated the CR.