src/Kernel.php
public static function getEnvironment($forceCheck = false) {
		if(self::$environment && !$forceCheck)
			return self::$environment;

		self::$environment = "local";

		if(file_exists("dachi_environment"))
			self::$environment = trim(file_get_contents("dachi_environment"));

		return self::$environment;
	}
public static function getEnvironment($forceCheck = false) {
		if(self::$environment && !$forceCheck)
			return self::$environment;

		self::$environment = "local";

		if(file_exists("dachi_environment"))
			self::$environment = trim(file_get_contents("dachi_environment"));

		return self::$environment;
	}
public static function getEnvironment ( $ forceCheck = false ) { if ( self :: $ environment && ! $ forceCheck ) return self :: $ environment ; self :: $ environment = "local" ; if ( file_exists ( "dachi_environment" ) ) self :: $ environment = trim ( file_get_contents ( "dachi_environment" ) ) ; return self :: $ environment ; }
Get the current environment we are executing in.

This is only available if running via the internal LemonDigits.com build toolkit, or if
your CI can be configured to output the environment to the 'dachi_environment' file.
(this could also be done manually by a developer during deployment)

@param bool $forceCheck Should we ignore the cached environment and forceably check the filesystem?
@return string
Get the current environment we are executing in .