function resolve( $url = '', Array $query_string_vars = [ ] ) {
        if ( $this->done && empty( $this->error ) ) {
            return $this->query_vars;
        }
        $this->parseUrl( $url, $query_string_vars );
        $rewrite = (array) $this->resolver->getRewrite();
        if ( ! empty( $rewrite ) ) {
            list( $matches, $query ) = $this->parseRewriteRules( $rewrite );
            $this->setMatchedQuery( $matches, $query );
            $this->maybeAdmin();
        }
        return $this->resolveVars();
    }