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 serialization 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)
This task a part of #2001206: Replace drupal_container() with Drupal::service()
Comment | File | Size | Author |
---|---|---|---|
#6 | serialization-2014009-6.patch | 626 bytes | kgoel |
#5 | serialization-2014009-5.patch | 633 bytes | kgoel |
#2 | serialization-2014009-2.patch | 621 bytes | kgoel |
Comments
Comment #1
kgoel CreditAttribution: kgoel commentedComment #2
kgoel CreditAttribution: kgoel commentedComment #4
ddrozdik CreditAttribution: ddrozdik commentedPlease use $this->container->get() instead \Drupal::service in tests.
Comment #5
kgoel CreditAttribution: kgoel commentedComment #6
kgoel CreditAttribution: kgoel commentedComment #7
Crell CreditAttribution: Crell commentedEasy peasy.
Comment #8
alexpottCommitted f7a22ec and pushed to 8.x. Thanks!
Comment #9
kgoel CreditAttribution: kgoel commented