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 commentedComment #2
kgoel commentedComment #4
ddrozdik commentedPlease use $this->container->get() instead \Drupal::service in tests.
Comment #5
kgoel commentedComment #6
kgoel commentedComment #7
Crell commentedEasy peasy.
Comment #8
alexpottCommitted f7a22ec and pushed to 8.x. Thanks!
Comment #9
kgoel commented