Documentation

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

$photoConfig read-only

private array<string|int, mixed> $photoConfig

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
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

downloadAction()

public downloadAction() : Stream|null
Return values
Stream|null

indexAction()

public indexAction() : ViewModel
Return values
ViewModel

removeProfilePhotoAction()

For removing a profile picture.

public removeProfilePhotoAction() : Response
Return values
Response

setProfilePhotoAction()

For setting a profile picture.

public setProfilePhotoAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModel

voteAction()

Store a vote for a photo.

public voteAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModel

weeklyAction()

Display the page containing previous pictures of the week.

public weeklyAction() : ViewModel
Return values
ViewModel

        
On this page

Search results