class AvatarUploader

Properties

protected $uploadDir

Methods

__construct(FilesystemInterface $uploadDir)

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(FilesystemInterface $uploadDir)

Parameters

FilesystemInterface $uploadDir

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