lithium\console\Request::env()
Get environment variables.
Parameters
-
string
$key
Returns
mixedReturns the environment key related to the $key
argument. If $key
is equal
to null the result will be the entire environment array. If $key
is set but not
available, null
will be returned.
Source
public function env($key = null) {
if (!empty($this->_env[$key])) {
return $this->_env[$key];
}
if ($key === null) {
return $this->_env;
}
return null;
}