class DeleteGroupHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected GroupRepository $groups

Methods

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

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

__construct(Dispatcher $events, GroupRepository $groups)

No description

handle(DeleteGroup $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, GroupRepository $groups)

Parameters

Dispatcher $events
GroupRepository $groups

Group handle(DeleteGroup $command)

Parameters

DeleteGroup $command

Return Value

Group

Exceptions

PermissionDeniedException