codeguy/Slim — pull request #371 by briannesbitt (2012-08-16 04:26:42+00:00)
Title: Simplify router and delay uri pass

* Simplified the router and its interface.
* Delayed the passing of the URI until matching is required which allows hooks to modify the requested URI.
* Added route as parameter for route middleware. Added test. I think not sending request and response is ok as well since nothing else (routes, hooks etc) do that. The user can always use ($app) and get it themselves.

Note the request URI is passed into the `router::dispatch()` method. I am not a fan of this but I left it as is and will chat with you tomorrow with 2 changes that will easily remedy this.