Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
update.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Jun 2013 at 20:04 UTC
Updated:
29 Jul 2014 at 22:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kgoel commentedComment #2
kgoel commentedComment #3
dcam commented#2 looks good. I didn't find any more uses of drupal_container() in the update module.
Comment #4
webchickI think those should be Drupal::keyValue() instead.
Comment #5
hussainwebI am attaching a patch altered as per @webchick's recommendations.
I am a little confused about this, though. I read here that it it is preferred to use the service container to instantiate objects. As per the following block:
Calling Drupal::keyValue() seems to me to be a direct implementation detail. Of course, I checked the implementation and see that it just calls the container. I am not sure which is the better method. However, like I said, I am using Drupal::keyValue() as per @webchick's recommendation, but I would like someone to throw some light on this.
Comment #6
hussainwebSorry about the empty patch. Here is the correct one.
Comment #7
Bober commentedSeems good for me.
Comment #8
alexpottCommitted fc35679 and pushed to 8.x. Thanks!
Comment #9
kgoel commentedComment #10
alexpott@kgoel the move to closed(fixed) will happen automatically after 2 weeks without further comments.