MotdController
extends AbstractController
in package
Uses
LotgdControllerTrait
Table of Contents
- TRANSLATION_DOMAIN = 'jaxon_motd'
- $repository : mixed
- $translator : mixed
- __construct() : mixed
- delete() : Response
- index() : Response
- item() : Response
- poll() : Response
- vote() : Response
- Vote in a poll.
- addNotification() : never
- Adds a notification to the current session for type.
- renderBlock() : Response
- Renders a view block.
- getParams() : array<string|int, mixed>
- Get default params.
Constants
TRANSLATION_DOMAIN
public
mixed
TRANSLATION_DOMAIN
= 'jaxon_motd'
Properties
$repository
private
mixed
$repository
$translator
private
mixed
$translator
Methods
__construct()
public
__construct(TranslatorInterface $translator, MotdRepository $repository) : mixed
Parameters
- $translator : TranslatorInterface
- $repository : MotdRepository
Return values
mixed —delete()
public
delete(Request $request) : Response
Parameters
- $request : Request
Return values
Response —index()
public
index(Request $request) : Response
Parameters
- $request : Request
Return values
Response —item()
public
item(Request $request) : Response
Parameters
- $request : Request
Return values
Response —poll()
public
poll(Request $request) : Response
Parameters
- $request : Request
Return values
Response —vote()
Vote in a poll.
public
vote(Request $request) : Response
Parameters
- $request : Request
Return values
Response —addNotification()
Adds a notification to the current session for type.
protected
addNotification(string $type, mixed $message) : never
Parameters
- $type : string
- $message : mixed
Tags
Return values
never —renderBlock()
Renders a view block.
protected
renderBlock(string $view, string $block[, array<string|int, mixed> $parameters = [] ][, Response|null $response = null ]) : Response
Parameters
- $view : string
- $block : string
- $parameters : array<string|int, mixed> = []
- $response : Response|null = null
Return values
Response —getParams()
Get default params.
private
getParams() : array<string|int, mixed>