Fast Route v0.4.0 Release Notes
Release Date: 2015-03-08 // about 9 years ago-
🚀 This release adds support for registering a route for multiple HTTP methods at the same time, by passing an array for the method parameter of
RouteCollector::addRoute()
. For example:/\*\* @var RouteCollector $r \*/$r-\>addRoute(['GET', 'POST'], '/foo/{bar}', 'handlerForGetAndPost');// This is equivalent to:$r-\>addRoute('GET', '/foo/{bar}', 'handlerForGetAndPost');$r-\>addRoute('POST', '/foo/{bar}', 'handlerForGetAndPost');