class PostReplyHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected DiscussionRepository $discussions
protected NotificationSyncer $notifications
protected PostValidator $validator

Methods

dispatchEventsFor(object $entity, User $actor = null)

Dispatch all events for an entity.

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

No description

CommentPost
handle(PostReply $command)

No description

Details

dispatchEventsFor(object $entity, User $actor = null)

Dispatch all events for an entity.

Parameters

object $entity
User $actor

__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

Exceptions

PermissionDeniedException