lithium\core\Environment::reset()
Resets the Environment
class to its default state, including unsetting the current
environment, removing any environment-specific configurations, and removing the custom
environment detector, if any has been specified.
Parameters
-
$env
If
set, delete the defined environment only.
Source
public static function reset($env = null) {
if ($env) {
unset(static::$_configurations[$env]);
return;
}
static::$_current = '';
static::$_detector = null;
static::$_configurations = [
'production' => [],
'development' => [],
'test' => []
];
}