class AvatarUploader

Properties

protected Filesystem $uploadDir

Methods

__construct(Factory $filesystemFactory)

No description

upload(User $user, Image $image)

No description

removeFileAfterSave(User $user)

<p>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.</p>

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)

<p>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.</p>

Parameters

User $user

remove(User $user)

Parameters

User $user