src/Neevo/Connection.php
public static function alias(&$config, $key, $alias){
		if(!isset($config[$alias]))
			return;
		$tmp = & $config;
		foreach(explode('.', $key) as $key){
			$tmp = & $tmp[$key];
		}
		if(!isset($tmp))
			$tmp = $config[$alias];
	}
public static function alias(&$config, $key, $alias){
		if(!isset($config[$alias]))
			return;
		$tmp = & $config;
		foreach(explode('.', $key) as $key){
			$tmp = & $tmp[$key];
		}
		if(!isset($tmp))
			$tmp = $config[$alias];
	}
public static function alias ( & $ config , $ key , $ alias ) { if ( ! isset ( $ config [ $ alias ] ) ) return ; $ tmp = & $ config ; foreach ( explode ( '.' , $ key ) as $ key ) { $ tmp = & $ tmp [ $ key ] ; } if ( ! isset ( $ tmp ) ) $ tmp = $ config [ $ alias ] ; }
Creates an alias for configuration value.
@param array $config Passed by reference
@param string $key
@param string $alias Alias of $key
Creates an alias for configuration value .