public function setInstance($instance) {
		$reflection = new ReflectionClass($instance);
		$name = str_replace('\\', ':', $reflection->getName());
		$this->instances[$name] = $instance;
	}
public function setInstance($instance) {
		$reflection = new ReflectionClass($instance);
		$name = str_replace('\\', ':', $reflection->getName());
		$this->instances[$name] = $instance;
	}
public function setInstance ( $ instance ) { $ reflection = new ReflectionClass ( $ instance ) ; $ name = str_replace ( '\\' , ':' , $ reflection -> getName ( ) ) ; $ this -> instances [ $ name ] = $ instance ; }
Add new entry in instances.

@param string $key Key of entry
@param Callable $resolver Callable of entry

@return void
Add new entry in instances .