获取容器里的值
@param $alias
@return mixed|null
342051
public static function get($alias) {
        if (isset(self::$pool[$alias])) {
            return self::$pool[$alias];
        }
        return null;
    }
563857
public function getMappingByAlias(string $alias) : Mapping
    {
        foreach ($this->mappings as $mapping) {
            if (0 === strcasecmp($alias, $mapping->getClassAlias())) {
                return $mapping;
            }
        }

        return Mapping::null();
    }
503319
public function get($alias) {
        return !empty($this->routingTable[$alias]) ? $this->routingTable[$alias] : null;
    }
177248
public function getDomain($alias) {
		if (isset($this->aliases[$alias])) {
			return $this->aliases[$alias];
		}
		return $alias;
	}
676422
public function getId($alias)
    {
        if (!isset($this->aliases[$alias])) {
            return null;
        }

        $id = $this->aliases[$alias];
        while (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return $id;
    }
573365
public static function hasAlias(string $alias): bool
    {
        // empty OR not an alias
        if (!$alias || $alias[0] !== '@') {
            return false;
        }

        return isset(self::$aliases[$alias]);
    }
584209
public function getAlias($alias)
    {
        return isset($this->_aliases[$alias]) ? $this->_aliases[$alias] : $alias;
    }
725168
public function alias($alias, $path = null)
	{
		if (is_null($path))
		{
			return $this->aliases[$alias] ?: null;
		}
		else
		{
			$this->aliases[$alias] = $path;
		}
	}
844425
public function hasSubqueryAlias($alias)
    {
        return $this->hasAlias($alias) && $this->getExpression($this->getHash($alias)) instanceof Expr\Subquery;
    }
716452
public function setAlias($alias = null)
    {
        if (!empty($alias)) {
            $this->query['alias'] = $alias;
        } else {
            unset($this->query['alias']);
        }
        return $this;
    }
590314
public function getIndexInfoByAlias($alias)
    {
        $responseData = $this->db->get(['_alias', $alias]);
        if (empty($responseData)) {
            return [];
        }

        return $responseData;
    }
868330
public function getServiceIdFromAlias($alias, $default = null)
    {
        if (isset($this->aliases[$alias])) {
            return $this->aliases[$alias];
        }

        return $default;
    }
1070352
protected function getValueForQuery($alias)
    {
        $value = $this->getConvertedValue($alias);
        
        return is_null($value) ? $this->getValue() : $value;
    }
283927
public function getAlias($alias) {
		if (!is_string($alias)) {
			return $alias;
		}

		if (array_key_exists($alias, $this->aliases)) {
			return $this->aliases[$alias];
		}

		return $alias;
	}
1251608
public function get(string $alias = null)
    {
        if (is_null($alias)) {
            return $this->aliases;
        }

        return $this->has($alias) ? $this->aliases[$alias] : false;
    }
1261955
public function alias($alias = null)
    {
        deprecationWarning(
            get_called_class() . '::alias() is deprecated. ' .
            'Use setAlias()/getAlias() instead.'
        );
        if ($alias !== null) {
            $this->setAlias($alias);
        }

        return $this->getAlias();
    }
655739
public function getByAlias($alias, array $data = [])
    {
        $pattern = null;
        foreach ($this->_patterns as $_pattern) {
            if ($_pattern[5] == $alias) {
                $pattern = $_pattern;
                break;
            }
        }
        if ($pattern == null) {
            return null;
        }

        /**
         * 没有指定数据则会直接返回原始路由信息
         */
        if (!$data) {
            return $pattern[3];
        }

        foreach ($data as $key => $val) {
            $data[':' . $key] = $val;
            unset($data[$key]);
        }
        $url = str_replace(array_keys($data), array_values($data), $pattern[3]);
        /**
         * 替换掉占位符格式限制字符串
         */
        $formatLimit = array_map(function ($item) {
            return '@' . $item;
        }, array_keys($this->regexps));
        $url = str_replace($formatLimit, '', $url);
        return $url;
    }