PhotoController
extends AbstractActionController
in package
Table of Contents
Properties
- $aclService : AclService
- $albumService : Album
- $photoConfig : array<string|int, mixed>
- $photoService : Photo
- $translator : Translator
Methods
- __construct() : mixed
- downloadAction() : Stream|null
- indexAction() : ViewModel
- removeProfilePhotoAction() : Response
- For removing a profile picture.
- setProfilePhotoAction() : JsonModel|ViewModel
- For setting a profile picture.
- voteAction() : JsonModel|ViewModel
- Store a vote for a photo.
- weeklyAction() : ViewModel
- Display the page containing previous pictures of the week.
Properties
$aclService read-only
private
AclService
$aclService
$albumService read-only
private
Album
$albumService
$photoConfig read-only
private
array<string|int, mixed>
$photoConfig
$photoService read-only
private
Photo
$photoService
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(Translator $translator, AclService $aclService, Album $albumService, Photo $photoService, array<string|int, mixed> $photoConfig) : mixed
Parameters
- $translator : Translator
- $aclService : AclService
- $albumService : Album
- $photoService : Photo
- $photoConfig : array<string|int, mixed>
Tags
downloadAction()
public
downloadAction() : Stream|null
Return values
Stream|nullindexAction()
public
indexAction() : ViewModel
Return values
ViewModelremoveProfilePhotoAction()
For removing a profile picture.
public
removeProfilePhotoAction() : Response
Return values
ResponsesetProfilePhotoAction()
For setting a profile picture.
public
setProfilePhotoAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModelvoteAction()
Store a vote for a photo.
public
voteAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModelweeklyAction()
Display the page containing previous pictures of the week.
public
weeklyAction() : ViewModel