diff --git a/system/src/Grav/Common/Config/Setup.php b/system/src/Grav/Common/Config/Setup.php index 4da1095c9..190ee4ace 100644 --- a/system/src/Grav/Common/Config/Setup.php +++ b/system/src/Grav/Common/Config/Setup.php @@ -223,6 +223,8 @@ class Setup extends Data // Initialize class. parent::__construct($setup); + $this->def('environment', static::$environment); + // Figure out path for the current environment. $envPath = defined('GRAV_ENVIRONMENT_PATH') ? GRAV_ENVIRONMENT_PATH : (getenv('GRAV_ENVIRONMENT_PATH') ?: null); if (null === $envPath) {