class AvatarUploader

Properties

protected Filesystem $uploadDir

Methods

__construct(Factory $filesystemFactory)

No description

upload(User $user, Image $image)

No description

removeFileAfterSave(User $user)

Handle the removal of the old avatar file after a successful user save We don't place this in remove() because otherwise we would call changeAvatarPath 2 times when uploading.

remove(User $user)

No description

Details

__construct(Factory $filesystemFactory)

Parameters

Factory $filesystemFactory

upload(User $user, Image $image)

Parameters

User $user
Image $image

protected removeFileAfterSave(User $user)

Handle the removal of the old avatar file after a successful user save We don't place this in remove() because otherwise we would call changeAvatarPath 2 times when uploading.

Parameters

User $user

remove(User $user)

Parameters

User $user