lithium\template\view\Renderer::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$configAvailable configuration options are:
view: TheViewobject associated with this renderer.strings: String templates used by helpers.handlers: An array of output handlers for string template inputs.request: TheRequestobject associated with this renderer and passed to the defined handlers.response: TheResponseobject associated with this renderer.context: An array of the current rendering context data, includingcontent,title,scripts,headandstyles.
Returns
voidSource
public function __construct(array $config = []) {
$defaults = [
'view' => null,
'strings' => [],
'handlers' => [],
'request' => null,
'response' => null,
'context' => [
'content' => '', 'title' => '', 'scripts' => [],
'styles' => [], 'head' => []
]
];
parent::__construct((array) $config + $defaults);
}