public function alias($from, $to = null)
	{
		if (is_array($from))
		{
			$this->aliases = array_merge($this->aliases, $from);

			return $this;
		}

		$this->aliases[$from] = $to;
		$this->cache->set($from, $to);
	}
public function alias($from, $to = null)
	{
		if (is_array($from))
		{
			$this->aliases = array_merge($this->aliases, $from);

			return $this;
		}

		$this->aliases[$from] = $to;
		$this->cache->set($from, $to);
	}
public function alias ( $ from , $ to = null ) { if ( is_array ( $ from ) ) { $ this -> aliases = array_merge ( $ this -> aliases , $ from ) ; return $ this ; } $ this -> aliases [ $ from ] = $ to ; $ this -> cache -> set ( $ from , $ to ) ; }
Registers a class alias

@param string|string[] $from
@param string|null     $to
Registers a class alias