dannyvankooten/AltoRouter — pull request #84 by Ashpants (2014-06-19 22:17:01+00:00)
Title: Allow a method to be matched via a wildcard.

In certain scenarios a method needs to be overwritten because of firewall or browser limitations.

Typical override solutions have been:
1) Use the _method parameter in a get or post.
2) use X-HTTP-Method-Override in the header.

This would allow a browser to do a post with an override to put, and allow a rest interface to do an update on an object.

This opens up the router to try and match on a limitless range.

Adding the ability to match on a wild card would allow you to catch all unknown methods

$router->map('\*', '\*', array('controller' => 'Pages', 'action' => 'pages_404'));