$text) { if (strpos($text, 'SetEnv') !== false && strpos($text, 'ENVIRONMENT') !== false) { self::$_environment = trim(str_replace(array('SetEnv', 'ENVIRONMENT'), '', $text)); exit(); } } } $tmpPath = dirname($tmpPath); } $environment = ''; } self::$_environment = $environment; } /** * @return string */ public static function getEnvironment() { return self::$_environment; } }