class StartDiscussionHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected Dispatcher $bus
protected DiscussionValidator $validator

Methods

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

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

__construct(Dispatcher $events, Dispatcher $bus, DiscussionValidator $validator)

No description

mixed
handle(StartDiscussion $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, Dispatcher $bus, DiscussionValidator $validator)

Parameters

Dispatcher $events
Dispatcher $bus
DiscussionValidator $validator

mixed handle(StartDiscussion $command)

Parameters

StartDiscussion $command

Return Value

mixed

Exceptions

Exception