lithium\action\Response::__construct()
Constructor. Adds config values to the public properties when a new object is created.
Config options also include default values for Response::body() when called from
Response::render().
Parameters
-
array
$configThe available configuration options are the following. Further options are inherited from the parent classes.
'buffer'integer: Defaults tonull'decode'boolean: Defaults tonull.'location'array|string|null: Defaults tonull.'request'object: Defaults tonull.
Returns
voidSource
public function __construct(array $config = []) {
$defaults = [
'buffer' => 8192,
'location' => null,
'request' => null,
'decode' => false
];
parent::__construct($config + $defaults);
}