public function make($key, $params = [])
    {
        if($this->aliasExist($key)) {
            return $this->make($this->aliases[$key], $params);
        }

        if(is_callable($key)) {
            return call_user_func_array($key, $this->resolveCallback($key, $params));
        }

        return $this->resolveClass($key, $params);
    }
public function make($key, $params = [])
    {
        if($this->aliasExist($key)) {
            return $this->make($this->aliases[$key], $params);
        }

        if(is_callable($key)) {
            return call_user_func_array($key, $this->resolveCallback($key, $params));
        }

        return $this->resolveClass($key, $params);
    }
public function make ( $ key , $ params = [ ] ) { if ( $ this -> aliasExist ( $ key ) ) { return $ this -> make ( $ this -> aliases [ $ key ] , $ params ) ; } if ( is_callable ( $ key ) ) { return call_user_func_array ( $ key , $ this -> resolveCallback ( $ key , $ params ) ) ; } return $ this -> resolveClass ( $ key , $ params ) ; }
Resolved dependencies for a key.

@param string $key
@param array  $params

@return object
@throws Exception
Resolved dependencies for a key .