TimedPhpEngine
extends PhpEngine
in package
Times the time spent to render a template.
Tags
Table of Contents
- $container : mixed
- $stopwatch : mixed
- __construct() : mixed
- get() : mixed
- {@inheritdoc}
- render() : mixed
- {@inheritdoc}
- renderResponse() : Response
- Renders a view and returns a Response.
- setHelpers() : mixed
- {@inheritdoc}
Properties
$container
protected
mixed
$container
$stopwatch
protected
mixed
$stopwatch
Methods
__construct()
public
__construct(TemplateNameParserInterface $parser, ContainerInterface $container, LoaderInterface $loader, Stopwatch $stopwatch[, GlobalVariables $globals = null ]) : mixed
Parameters
- $parser : TemplateNameParserInterface
- $container : ContainerInterface
- $loader : LoaderInterface
- $stopwatch : Stopwatch
- $globals : GlobalVariables = null
Return values
mixed —get()
{@inheritdoc}
public
get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —render()
{@inheritdoc}
public
render(mixed $name[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $name : mixed
- $parameters : array<string|int, mixed> = []
Return values
mixed —renderResponse()
Renders a view and returns a Response.
public
renderResponse(mixed $view[, array<string|int, mixed> $parameters = [] ][, Response $response = null ]) : Response
Parameters
- $view : mixed
-
The view name
- $parameters : array<string|int, mixed> = []
-
An array of parameters to pass to the view
- $response : Response = null
Return values
Response —A Response instance
setHelpers()
{@inheritdoc}
public
setHelpers(array<string|int, mixed> $helpers) : mixed
Parameters
- $helpers : array<string|int, mixed>