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.
The SessionLimit service class calls out to the config service like this
\Drupal::config('session_limit.settings')
This is static so needs to be injected instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | session_limit_dependency_injection_2674242_2.patch | 6.08 KB | nkoporec |
Comments
Comment #2
nkoporecCreated a patch with dependency injection for all services used.Please reviewed it.
Comment #3
johnennew CreditAttribution: johnennew at Deeson commentedLooks good to me!
Comment #5
johnennew CreditAttribution: johnennew at Deeson commentedMarked as fixed