public function need($key)
    {
        if(!isset($this->resolved[$key])) {
            return $this->make($key);
        }

        return $this->resolved[$key];
    }
public function need($key)
    {
        if(!isset($this->resolved[$key])) {
            return $this->make($key);
        }

        return $this->resolved[$key];
    }
public function need ( $ key ) { if ( ! isset ( $ this -> resolved [ $ key ] ) ) { return $ this -> make ( $ key ) ; } return $ this -> resolved [ $ key ] ; }
Get the resolved type for a key that already resolved by the container.
If the key does not resolve, at first resolved it,
then returns the resolved type.

@param string $key

@return mixed
Get the resolved type for a key that already resolved by the container . If the key does not resolve at first resolved it then returns the resolved type .