TemplateController
in package
TemplateController.
Tags
Table of Contents
- $templating : mixed
- $twig : mixed
- __construct() : mixed
- __invoke() : Response
- templateAction() : Response
- Renders a template.
Properties
$templating
private
mixed
$templating
$twig
private
mixed
$twig
Methods
__construct()
public
__construct([Environment $twig = null ][, EngineInterface $templating = null ]) : mixed
Parameters
- $twig : Environment = null
- $templating : EngineInterface = null
Return values
mixed —__invoke()
public
__invoke(string $template[, int $maxAge = null ][, int $sharedAge = null ][, bool $private = null ]) : Response
Parameters
- $template : string
- $maxAge : int = null
- $sharedAge : int = null
- $private : bool = null
Return values
Response —templateAction()
Renders a template.
public
templateAction(string $template[, int|null $maxAge = null ][, int|null $sharedAge = null ][, bool|null $private = null ]) : Response
Parameters
- $template : string
-
The template name
- $maxAge : int|null = null
-
Max age for client caching
- $sharedAge : int|null = null
-
Max age for shared (proxy) caching
- $private : bool|null = null
-
Whether or not caching should apply for client caches only