lithium\console\Request::env()

public method

Get environment variables.

Parameters

  • string $key

Returns

mixed

Returns 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;
	}