Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2013 at 14:29 UTC
Updated:
29 Jul 2014 at 23:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andyposthere we go!
Comment #2
tr commentedThis is a common-sense improvement. +1 for doing this.
However, some of the added "use Drupal\comment\CommentInterface;" statements are not needed. For example, in /core/modules/comment/lib/Drupal/comment/CommentStorageController.php, CommentInterface is already referenced directly in the code without error. The CommentInterface interface doesn't have to be "use"-d because it is in the same namespace as CommentStorageController.
The attached patch differs from #1 in that it removes the unneeded use statements. Nothing else has been changed.
Comment #3
royal121 commentedThe patch in #2 applies cleanly. Thanks.
Comment #4
larowlanmakes sense but is an api change.
there is at least one change-notice that will need updating too.
Comment #5
andypostAssigning to Alex about changes, if the change rejected the backup is mark deprecated
PS: there's no conclusion still according #1847540-7: [META] Clean up comment module tests and decouple from node
This constants could be marked deprecated to avoid API change tag
Comment #6
dries commentedThis makes sense to me.
Comment #7
andypostre-roll after #2061899: Remove references to global $user in Comment module
Comment #9
andypostAnd another new entry after #1966448: comment_entity_load() breaks after disabling the Forum module
No other changes so back to RTBC
Comment #10
alexpottCommitted be70033 and pushed to 8.x. Thanks!
Comment #11
andypostFiled change notice https://drupal.org/node/2156155
Comment #12
webchickLooks fine to me, thanks!