class ReadDiscussionHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected DiscussionRepository $discussions

Methods

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

Dispatch all events for an entity.

__construct(Dispatcher $events, DiscussionRepository $discussions)

No description

handle(ReadDiscussion $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)

Parameters

Dispatcher $events
DiscussionRepository $discussions

UserState handle(ReadDiscussion $command)

Parameters

ReadDiscussion $command

Return Value

UserState

Exceptions

PermissionDeniedException