Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Use of static:
\Drupal::time();
\Drupal::config();
Proposed resolution
Intejct the service datetime.time
and use the method $this->config();
of ControllerBase
Comments
Comment #2
thallesFollow a patch with the injection.
Comment #3
gg24 CreditAttribution: gg24 as a volunteer and at Cheppers commentedHi @thalles,
The above patch works for me. Hence moving it to RTBC.
Thanks!
Comment #4
wundo CreditAttribution: wundo at Chuva Inc. for Galoa Science commentedComment #5
wundo CreditAttribution: wundo at Chuva Inc. for Galoa Science commentedre run tests
Comment #6
wundo CreditAttribution: wundo at Chuva Inc. for Galoa Science commentedre run tests
Comment #8
wundo CreditAttribution: wundo at Chuva Inc. for Galoa Science commented