Closed (works as designed)
Project:
Flag
Version:
8.x-4.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2015 at 07:52 UTC
Updated:
31 Mar 2015 at 04:16 UTC
Jump to comment: Most recent
Comments
Comment #1
socketwench commentedAnd then we'd need to bring in the event manager, and the module handler and the current user, and all of those other deps from the container...
I'd rather keep all that mess in FlagService where it does come together, rather than force all of that down the line. It's also a nice, central place to look for the flag and unflag methods. It's much easier to tell people \Drupal::service('flag')->flag() than Load the entity, then load the plugin, THEN flag stuff.