Problem/Motivation
Per drupal.org/project/drupal/issues/3302988, CssOptimizer->loadFile() will become a protected function.
This Class is instantiated in color.module and loadFile() is called there.
Proposed resolution
Use dependency injection to call loadFile from the color module, or write the color module's own loadFile function.
Issue fork color-3590780
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:
Comments
Comment #3
znak commentedComment #6
znak commentedI updated the code in the module file to use services in the correct way. Please, check the PR
Comment #7
mdranove commentedHmm Im not sure I understand, there are a lot of changes in the MR that are not related to the issue?
I think the MR should just be changing this line
$css_optimizer = new CssOptimizer(\Drupal::service('file_url_generator'));Unless I'm missing something.
Comment #8
mdranove commentedComment #10
mdranove commented