private function extractName($name) {
		if (is_string($name)) {
			return [$name, null];
		}

		if (is_array($name)) {
			return [key($name), current($name)];
		}

		throw new ComponentRegisterException('The services\'s name must be a string or an array, ' . gettype($name) . ' given.');
	}
private function extractName($name) {
		if (is_string($name)) {
			return [$name, null];
		}

		if (is_array($name)) {
			return [key($name), current($name)];
		}

		throw new ComponentRegisterException('The services\'s name must be a string or an array, ' . gettype($name) . ' given.');
	}
private function extractName ( $ name ) { if ( is_string ( $ name ) ) { return [ $ name , null ] ; } if ( is_array ( $ name ) ) { return [ key ( $ name ) , current ( $ name ) ] ; } throw new ComponentRegisterException ( 'The services\'s name must be a string or an array, ' . gettype ( $ name ) . ' given.' ) ; }
Extract Name and Aliases.

@param string|array $name

@return array [$name, $aliases]
Extract Name and Aliases .