コード例 #1
0
 protected function dispatchCommentEvent(CommentAction $comment, $userIds)
 {
     $resource = $comment->getResource();
     if ($resource !== null) {
         $event = new LogSocialmediaCommentEvent($comment, $userIds);
         return $this->dispatch($event);
     }
 }
コード例 #2
0
 public function __construct(CommentAction $comment, $userIds)
 {
     $this->details = array();
     $this->userIds = $userIds;
     parent::__construct($comment->getResource(), $this->details);
 }