Last active
October 2, 2017 16:37
-
-
Save fhuitelec/1157b63cd1d2c2a9633b05f727946d00 to your computer and use it in GitHub Desktop.
madewithlove - Avoiding conditional blog post - Comment #comment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Comment available here: http://disq.us/p/1lek1yc | |
* | |
* Notification collection consumer point of view. | |
*/ | |
$notifications = Notifications::make() | |
->add($this->buildParentCreatorNotification($comment)) | |
->add($this->buildNotificationsForAssignedUsers($comment)) | |
->add($this->buildNotificationsForCommenters($comment)); | |
return $notifications | |
->mergeDuplicates() | |
->filterOutCommentAuthor($comment); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment