mikecao/flight — pull request #124 by smeinecke (2014-07-04 22:54:30+00:00)
Title: added new setting "add_route_obj"

To be able to use the same callback multiple times (with default values for parameters) like this:
```
Flight::route('GET /', array('\Application\Controller\Section', 'showSection'));
Flight::route('GET /section/@name', array('\Application\Controller\Section', 'showSection'));
Flight::route('GET /section/@name/@subname', array('\Application\Controller\Section', 'showSection'));
```
It would be nice to restore the old behavior of flightphp to disable auto append of Route object as last parameter to every route callback.

By setting 'flight.add_route_obj' to false this is possible with this patch.