Add new management methods to ReactionCounter and ReactionTotal interfaces #162
Unanswered
antonkomarev
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To rebuild
countandweightattributes onCog\Contracts\Love\Reactant\ReactionTotal\Models\ReactionTotalandCog\Laravel\Love\Reactant\ReactionCounter\Models\ReactionCounterclasses we are dispatchingCog\Laravel\Love\Reactant\Jobs\RebuildReactionAggregatesJobasync job class.The main problem with current implementation that it knows too much about internal
ReactionTotalandReactionCountconcrete models implementation:We need to specify
@varin PhpDoc becauseupdatemethod is not part of the counter interface.One of the solutions to introduce new methods in interfaces, then this code will look like:
Beta Was this translation helpful? Give feedback.
All reactions