codeguy/Slim — pull request #488 by gmanricks (2013-03-12 04:53:53+00:00)
Title: Support for 'ANY' routes

## ANY Routes

This adds a 'short circuit' for routes with the ANY method, so that they will match all HTTP methods (even made up ones).

The main functionality comes from the change in the router class. Instead of this:
```php
if (!$route->supportsHttpMethod($httpMethod)) {
```

I changed it to:
```php
if (!$route->supportsHttpMethod($httpMethod) && !$route->supportsHttpMethod("ANY")) {
```

Other additions include a helper method inside the Slim class (named any) and a unit-test in the SlimTest.php file