static public function formatName($definition)
	{
	    if (is_string($definition)) {
	        return $definition;
	    } elseif (is_object($definition)) {
	        return get_class($definition);
	    } elseif (is_array($definition)) {
	        if (!isset($definition['class'])) {
	            $name = $definition[0];
	        } else {
	            $name = $definition['class'];
	        }
	    } else {
	        throw new InvalidConfigException("Unsupported definition for :" . gettype($definition));
	    }
	}
static public function formatName($definition)
	{
	    if (is_string($definition)) {
	        return $definition;
	    } elseif (is_object($definition)) {
	        return get_class($definition);
	    } elseif (is_array($definition)) {
	        if (!isset($definition['class'])) {
	            $name = $definition[0];
	        } else {
	            $name = $definition['class'];
	        }
	    } else {
	        throw new InvalidConfigException("Unsupported definition for :" . gettype($definition));
	    }
	}
static public function formatName ( $ definition ) { if ( is_string ( $ definition ) ) { return $ definition ; } elseif ( is_object ( $ definition ) ) { return get_class ( $ definition ) ; } elseif ( is_array ( $ definition ) ) { if ( ! isset ( $ definition [ 'class' ] ) ) { $ name = $ definition [ 0 ] ; } else { $ name = $ definition [ 'class' ] ; } } else { throw new InvalidConfigException ( "Unsupported definition for :" . gettype ( $ definition ) ) ; } }
format the name, use for format config key
@param mixed $definition
@throws InvalidConfigException
@return string
format the name use for format config key