I cannot use _GET because I want to “decode” another url (referer url) than the current one (requestUri), and I don’t know all the get params (some of them can be in to url path, other can be in the query string).
I’m looking a way to make reverse engineering for createUrl method.
That’s not possible. The URL parsing mechanism is taylored towards analyzing the current request, not any given URL. It also sets some variables in $_REQUEST, whenever a rule matches - this is surely not what you want. So i think you’re out of luck here.