original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Registers an instantiated class as a Service Provider.
  
  todo Register savedInstance class with the services array.
  
  @param $alias
  @param $class
  
  @return $this
docstring_tokens: Registers an instantiated class as a Service Provider .