public static function get($key, $default = "default") {
		if(self::$config == array())
			self::load();

		$env = Kernel::getEnvironment();
		$position = self::$config[$env];
		$token = strtok($key, '.');
		while($token !== false) {
			$nextToken = strtok('.');
			if(!isset($position[$token]))
				return $default;

			if($nextToken === false)
				return $position[$token];

			$position = &$position[$token];
			$token = $nextToken;
		}

		return $default;
	}
public static function get($key, $default = "default") {
		if(self::$config == array())
			self::load();

		$env = Kernel::getEnvironment();
		$position = self::$config[$env];
		$token = strtok($key, '.');
		while($token !== false) {
			$nextToken = strtok('.');
			if(!isset($position[$token]))
				return $default;

			if($nextToken === false)
				return $position[$token];

			$position = &$position[$token];
			$token = $nextToken;
		}

		return $default;
	}
public static function get ( $ key , $ default = "default" ) { if ( self :: $ config == array ( ) ) self :: load ( ) ; $ env = Kernel :: getEnvironment ( ) ; $ position = self :: $ config [ $ env ] ; $ token = strtok ( $ key , '.' ) ; while ( $ token !== false ) { $ nextToken = strtok ( '.' ) ; if ( ! isset ( $ position [ $ token ] ) ) return $ default ; if ( $ nextToken === false ) return $ position [ $ token ] ; $ position = & $ position [ $ token ] ; $ token = $ nextToken ; } return $ default ; }
Get a configuration entry
@param  string $key     The configuration key to retrieve (e.g. dachi.siteName or api.twitter.publicKey)
@param  string $default The default value to return if the key was not found
@return mixed
Get a configuration entry