Problem/Motivation
Follow up #2729597: [meta] Replace \Drupal with injected services where appropriate in core
Proposed resolution
Replace all of them with IoC injection where possible
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3123212-4.patch | 2.78 KB | codersukanta |
Comments
Comment #3
codersukanta commentedComment #4
codersukanta commentedComment #5
hardik_patel_12 commentedThanks for working on this.
It's not just replacing \Drupal::pathValidator() with \Drupal::service('path.validator') , but
It's to replace \Drupal::pathValidator() and \Drupal::service('path.validator') with IoC injection where possible.
Kindly see the Parent issue for more info.
Comment #6
hardik_patel_12 commentedSeems nothing to do.
Comment #7
junglePer the parent issue, rescoping this to do it for non-test code. Sorry for the change!
Comment #8
jungleIt kooks like that only in scope one is in
core/lib/Drupal/Core/Url.php, but it's inprotected static function fromInternalUri()To me, there is nothing to do. Thanks all for your efforts!