class DeleteAvatarHandler

Traits

Methods

void
dispatchEventsFor(mixed $entity, User|null $actor = null)

Dispatch all events for an entity.

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

No description

handle(DeleteAvatar $command)

No description

Details

void dispatchEventsFor(mixed $entity, User|null $actor = null)

Dispatch all events for an entity.

Parameters

mixed $entity
User|null $actor

Return Value

void

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

Parameters

Dispatcher $events
UserRepository $users
AvatarUploader $uploader

User handle(DeleteAvatar $command)

Parameters

DeleteAvatar $command

Return Value

User