FeedComposerListener
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- handle() : array<string|int, mixed>|null
- Photo set feed content won't apply to every single photo. DO NOT assign content to per photo.
- canUploadMedia() : bool
- handleComposer() : int
- uploadMedias() : array<string|int, mixed>
Properties
$photoGroupRepository
private
PhotoGroupRepositoryInterface
$photoGroupRepository
$repository
private
PhotoRepositoryInterface
$repository
Methods
__construct()
public
__construct(PhotoRepositoryInterface $repository, PhotoGroupRepositoryInterface $photoGroupRepository) : mixed
Parameters
- $repository : PhotoRepositoryInterface
- $photoGroupRepository : PhotoGroupRepositoryInterface
handle()
Photo set feed content won't apply to every single photo. DO NOT assign content to per photo.
public
handle(User $user, User $owner, string $postType, array<string, mixed> $params) : array<string|int, mixed>|null
Parameters
Return values
array<string|int, mixed>|nullcanUploadMedia()
protected
canUploadMedia(array<string|int, mixed> $files) : bool
Parameters
- $files : array<string|int, mixed>
Return values
boolhandleComposer()
protected
handleComposer(User $user, User $owner, array<string|int, mixed> $params) : int
Parameters
Return values
intuploadMedias()
protected
uploadMedias(User $user, User $owner, array<string|int, mixed> $params, string|null $groupContent) : array<string|int, mixed>