class DeleteAvatarHandler

Traits

Properties

protected Dispatcher $events from DispatchEventsTrait
protected UserRepository $users
protected AvatarUploader $uploader

Methods

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

Dispatch all events for an entity.

__construct(Dispatcher $events, UserRepository $users, AvatarUploader $uploader)

No description

handle(DeleteAvatar $command)

No description

Details

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

Dispatch all events for an entity.

Parameters

object $entity
User $actor

__construct(Dispatcher $events, UserRepository $users, AvatarUploader $uploader)

Parameters

Dispatcher $events
UserRepository $users
AvatarUploader $uploader

User handle(DeleteAvatar $command)

Parameters

DeleteAvatar $command

Return Value

User

Exceptions

PermissionDeniedException