public function saveInstance($alias, &$class)
	{
		$alias = strtolower($alias);

		if (array_key_exists($alias, $this->instances))
		{
			unset($this->instances[$alias]);
		}

		$this->instances[$alias] = $class;

		return $this;
	}
public function saveInstance($alias, &$class)
	{
		$alias = strtolower($alias);

		if (array_key_exists($alias, $this->instances))
		{
			unset($this->instances[$alias]);
		}

		$this->instances[$alias] = $class;

		return $this;
	}
public function saveInstance ( $ alias , & $ class ) { $ alias = strtolower ( $ alias ) ; if ( array_key_exists ( $ alias , $ this -> instances ) ) { unset ( $ this -> instances [ $ alias ] ) ; } $ this -> instances [ $ alias ] = $ class ; return $ this ; }
Registers an instantiated class as a Service Provider.

todo Register savedInstance class with the services array.

@param $alias
@param $class

@return $this
Registers an instantiated class as a Service Provider .