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()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kgoel’s picture

Assigned: Unassigned » kgoel
kgoel’s picture

Status: Active » Needs review
FileSize
621 bytes

Status: Needs review » Needs work

The last submitted patch, serialization-2014009-2.patch, failed testing.

ddrozdik’s picture

Please use $this->container->get() instead \Drupal::service in tests.

kgoel’s picture

Status: Needs work » Needs review
FileSize
633 bytes
kgoel’s picture

FileSize
626 bytes
Crell’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Easy peasy.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed f7a22ec and pushed to 8.x. Thanks!

kgoel’s picture

Status: Fixed » Closed (fixed)