src/Container.php
public function setInstance($name, $instance) {
        $this->instances[$this->normalizeID($name)] = $instance;
        return $this;
    }
public function setInstance($name, $instance) {
        $this->instances[$this->normalizeID($name)] = $instance;
        return $this;
    }
public function setInstance ( $ name , $ instance ) { $ this -> instances [ $ this -> normalizeID ( $ name ) ] = $ instance ; return $ this ; }
Set a specific shared instance into the container.

When you set an instance into the container then it will always be returned by subsequent retrievals, even if a
rule is configured that says that instances should not be shared.

@param string $name The name of the container entry.
@param mixed $instance This instance.
@return $this
Set a specific shared instance into the container .