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.
drupal_container() is deprecated, and all calls in the path module need to be replaced with Drupal::service(), except for where the module_handler service is requested, which needs to be replaced with Drupal::moduleHandler() (see #1957154: Replace calls to drupal_container()->get('module_handler') service with Drupal::moduleHandler())
Comment | File | Size | Author |
---|---|---|---|
#4 | path-2011116-4.patch | 7.42 KB | kgoel |
#4 | interdiff.txt | 3.16 KB | kgoel |
#2 | path-2011116-2.patch | 7.39 KB | kgoel |
Comments
Comment #1
kgoel CreditAttribution: kgoel commentedComment #2
kgoel CreditAttribution: kgoel commentedComment #3
dcam CreditAttribution: dcam commentedIt looks like there are a lot of calls in PathAliasTest.php that need to be converted to this->container->get().
Comment #4
kgoel CreditAttribution: kgoel commentedComment #5
dcam CreditAttribution: dcam commented#4 looks good. The patch converts all uses of drupal_container() in the path module.
Comment #6
webchickCommitted and pushed to 8.x. Thanks!
Comment #7
ddrozdik CreditAttribution: ddrozdik commented