public function set($name, $instance)
    {
        $key = $this->makeKey($name);

        $this->alias($name, $this->describe(get_class($instance)));

        $this->instances[$key] = $instance;

        return $this;
    }
public function set($name, $instance)
    {
        $key = $this->makeKey($name);

        $this->alias($name, $this->describe(get_class($instance)));

        $this->instances[$key] = $instance;

        return $this;
    }
public function set ( $ name , $ instance ) { $ key = $ this -> makeKey ( $ name ) ; $ this -> alias ( $ name , $ this -> describe ( get_class ( $ instance ) ) ) ; $ this -> instances [ $ key ] = $ instance ; return $ this ; }
Store an instance for injection by class name or alias.

@param string $name Class name or alias
@param object $instance

@return Manager
Store an instance for injection by class name or alias .