codeguy/Slim — pull request #432 by mnlg (2012-09-22 23:08:56+00:00)
Title: Simplify and remove pass

- Remove the Slim::pass method and dispatch the first matched route.

Starting with #418 briannesbitt/simplifySlimCallAndRouterV2 branch remove the Slim::pass method and dispatch the first matched route. This simplifies the Slim::call method.

- Moves dispatch method to the Route.

Move the dispatch method back to the Route class, it seems more appropriate to have the route handle its own middleware instead of relying on the Router to do so.

- Create the routes in Slim instead of Router.

Create the routes in Slim::mapRoute and inject them into the Router instead of creating them in the Router itself.