PHP Class Xpressengine\User\UserImageHandler

Author: XE Developers ([email protected])
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Storage $storage, MediaManager $mediaManager, Closure $imageManagerResolver, array $profileImgConfig ) UserImageHandler constructor.
updateUserProfileImage ( Xpressengine\User\UserInterface $user, Symfony\Component\HttpFoundation\File\UploadedFile $profileFile ) : string 회원의 프로필 이미지를 등록한다.

Method Details

__construct() public méthode

UserImageHandler constructor.
public __construct ( Storage $storage, MediaManager $mediaManager, Closure $imageManagerResolver, array $profileImgConfig )
$storage Xpressengine\Storage\Storage Storage
$mediaManager Xpressengine\Media\MediaManager Media
$imageManagerResolver Closure intervention's ImageManager를 반환하는 callback
$profileImgConfig array 프로필 이미지 정보

updateUserProfileImage() public méthode

회원의 프로필 이미지를 등록한다.
public updateUserProfileImage ( Xpressengine\User\UserInterface $user, Symfony\Component\HttpFoundation\File\UploadedFile $profileFile ) : string
$user Xpressengine\User\UserInterface 프로필 이미지를 등록할 회원
$profileFile Symfony\Component\HttpFoundation\File\UploadedFile 프로필 이미지 파일
Résultat string 등록한 프로필이미지 ID