class EditPostHandler

Traits

Methods

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

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

__construct(Dispatcher $events, PostRepository $posts, PostValidator $validator)

No description

CommentPost
handle(EditPost $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, PostRepository $posts, PostValidator $validator)

Parameters

Dispatcher $events
PostRepository $posts
PostValidator $validator

CommentPost handle(EditPost $command)

Parameters

EditPost $command

Return Value

CommentPost