lithium\console\Response::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$config
Available configuration options are:
'output'
resource|null'error'
resource|null
Returns
voidSource
public function __construct($config = array()) {
$defaults = array('output' => null, 'error' => null);
$config += $defaults;
$this->output = $config['output'];
if (!is_resource($this->output)) {
$this->output = fopen('php://stdout', 'r');
}
$this->error = $config['error'];
if (!is_resource($this->error)) {
$this->error = fopen('php://stderr', 'r');
}
parent::__construct($config);
}