class TemplateController

TemplateController.

Methods

__construct(Environment $twig = null, EngineInterface $templating = null)

No description

templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

Renders a template.

__invoke(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

No description

Details

at line 30
__construct(Environment $twig = null, EngineInterface $templating = null)

Parameters

Environment $twig
EngineInterface $templating

at line 44
Response templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

Renders a template.

Parameters

string $template The template name
int $maxAge Max age for client caching
int $sharedAge Max age for shared (proxy) caching
bool $private Whether or not caching should apply for client caches only

Return Value

Response

at line 71
Response __invoke(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

Parameters

string $template
int $maxAge
int $sharedAge
bool $private

Return Value

Response