DelegatingEngine
extends DelegatingEngine
in package
implements
EngineInterface
DelegatingEngine selects an engine for a given template.
Tags
Interfaces, Classes, Traits and Enums
- EngineInterface
- EngineInterface is the interface each engine must implement.
Table of Contents
- $container : mixed
- __construct() : mixed
- getEngine() : mixed
- {@inheritdoc}
- renderResponse() : Response
- Renders a view and returns a Response.
- resolveEngines() : mixed
- Resolved engine ids to their real engine instances from the container.
Properties
$container
protected
mixed
$container
Methods
__construct()
public
__construct(ContainerInterface $container, array<string|int, mixed> $engineIds) : mixed
Parameters
- $container : ContainerInterface
- $engineIds : array<string|int, mixed>
Return values
mixed —getEngine()
{@inheritdoc}
public
getEngine(mixed $name) : mixed
Parameters
- $name : 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
resolveEngines()
Resolved engine ids to their real engine instances from the container.
private
resolveEngines() : mixed