/** * Returns the current locale * @return String PHP locale string */ public static function getLocale() { $locale = Arguments::prioritize([\Locale::acceptFromHttp(self::safeHeader('HTTP_ACCEPT_LANGUAGE')), \Locale::getDefault(), Config::get('default_locale')]); return $locale; }
/** * Must return a value even without environment */ public function testGetValidWithoutEnvironment() { $value = Config::get('another_setting'); $this->assertEquals('another setting without environment', $value); }