public function setValue($name, $value)
    {
        unset($this->factories[$name]);
        $this->cache[$name] = $value;
    }
public function setValue($name, $value)
    {
        unset($this->factories[$name]);
        $this->cache[$name] = $value;
    }
public function setValue ( $ name , $ value ) { unset ( $ this -> factories [ $ name ] ) ; $ this -> cache [ $ name ] = $ value ; }
Set a value to be later returned as is. You only need to use this if you wish to store
a Closure.

@param string $name
@param mixed $value
@throws \InvalidArgumentException
Set a value to be later returned as is . You only need to use this if you wish to store a Closure .