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