class EditDiscussionHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected DiscussionRepository $discussions
protected DiscussionValidator $validator

Methods

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

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

__construct(Dispatcher $events, DiscussionRepository $discussions, DiscussionValidator $validator)

No description

handle(EditDiscussion $command)

No description

Details

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

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

Parameters

object $entity
User $actor

__construct(Dispatcher $events, DiscussionRepository $discussions, DiscussionValidator $validator)

Parameters

Dispatcher $events
DiscussionRepository $discussions
DiscussionValidator $validator

Discussion handle(EditDiscussion $command)

Parameters

EditDiscussion $command

Return Value

Discussion

Exceptions

PermissionDeniedException