示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * Must return a value even without environment
  */
 public function testGetValidWithoutEnvironment()
 {
     $value = Config::get('another_setting');
     $this->assertEquals('another setting without environment', $value);
 }