class PostReplyHandler

Traits

Methods

void
dispatchEventsFor(mixed $entity, User $actor = null)

<p>Dispatch all events for an entity.</p>

__construct(Dispatcher $events, DiscussionRepository $discussions, NotificationSyncer $notifications, PostValidator $validator)

No description

handle(PostReply $command)

No description

Details

void dispatchEventsFor(mixed $entity, User $actor = null)

<p>Dispatch all events for an entity.</p>

Parameters

mixed $entity
User $actor

Return Value

void

__construct(Dispatcher $events, DiscussionRepository $discussions, NotificationSyncer $notifications, PostValidator $validator)

Parameters

Dispatcher $events
DiscussionRepository $discussions
NotificationSyncer $notifications
PostValidator $validator

CommentPost handle(PostReply $command)

Parameters

PostReply $command

Return Value

CommentPost