public function resolveNamespaceAlias($alias)
	{
		foreach ($this->namespaces as $namespace)
		{
			list($from, $to) = $namespace;

			if ($empty = empty($to) or strpos($alias, $to) === 0)
			{
				if ( ! $empty)
				{
					$alias = substr($alias, strlen($to) + 1);
				}

				$class = $from.'\\'.$alias;
				$this->resolving[] = $class;

				if ($this->objectExists($class, true))
				{
					array_pop($this->resolving);

					return $class;
				}
			}
		}

		return false;
	}
public function resolveNamespaceAlias($alias)
	{
		foreach ($this->namespaces as $namespace)
		{
			list($from, $to) = $namespace;

			if ($empty = empty($to) or strpos($alias, $to) === 0)
			{
				if ( ! $empty)
				{
					$alias = substr($alias, strlen($to) + 1);
				}

				$class = $from.'\\'.$alias;
				$this->resolving[] = $class;

				if ($this->objectExists($class, true))
				{
					array_pop($this->resolving);

					return $class;
				}
			}
		}

		return false;
	}
public function resolveNamespaceAlias ( $ alias ) { foreach ( $ this -> namespaces as $ namespace ) { list ( $ from , $ to ) = $ namespace ; if ( $ empty = empty ( $ to ) or strpos ( $ alias , $ to ) === 0 ) { if ( ! $ empty ) { $ alias = substr ( $ alias , strlen ( $ to ) + 1 ) ; } $ class = $ from . '\\' . $ alias ; $ this -> resolving [ ] = $ class ; if ( $ this -> objectExists ( $ class , true ) ) { array_pop ( $ this -> resolving ) ; return $ class ; } } } return false ; }
Resolves a namespace alias

@param string $alias Alias

@return string|boolean Class name when resolved
Resolves a namespace alias