Inject/Injector.php
public function map($key,$obj = null,$need_cache = false){
        $this->clearCache($key);
        if (is_null($obj)) {
            $obj = $key;
        }
        $this->objects[$key] = [$obj,$need_cache];
        return $this;
    }
public function map($key,$obj = null,$need_cache = false){
        $this->clearCache($key);
        if (is_null($obj)) {
            $obj = $key;
        }
        $this->objects[$key] = [$obj,$need_cache];
        return $this;
    }
map an object that not instantiated
@param $key
@param $obj
@param bool $need_cache
@return $this