FileAccess Orion

TemplateController
in package

TemplateController.

Tags
author

Fabien Potencier fabien@symfony.com

final

Table of Contents

$templating  : mixed
$twig  : mixed
__construct()  : mixed
__invoke()  : Response
templateAction()  : Response
Renders a template.

Properties

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

Return values
Response

Search results