Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Class StatsDLogger.php and StatsdEventSubscriber.php contain \Drupal::service() to get the service. Please use the Dependency Injection to access the service.
Comment | File | Size | Author |
---|---|---|---|
#3 | dependency_injection-3083750.patch | 4.88 KB | pratik_kamble |
Comments
Comment #2
pratik_kambleWorking on fixing it.
Comment #3
pratik_kambleI have attached the patch to have dependency injection for Statsd Manager.
Comment #4
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedI have reviewed and tested the patch and looks good to be merged.
Comment #6
pratik_kamble