codeguy/Slim — pull request #817 by m90 (2014-04-27 15:01:28+00:00)
Title: augment `via` to also accept an array of verbs as 1st argument

I found it impossible to pass an arbitrary number of HTTP verbs stored in an array to `via` as `call_user_func_array` won't accept it as callable like:

```php
$verbs = array('GET', 'POST'); //this is actually sourced from a JSON file somewhere else
call_user_func_array($app->map('/foo', $handler_fn)->via, $verbs);
```

I patched it the way you can see in the PR. I do think this is a valuable addition (as generating routing from configuration files is something I'd need to do on a regular basis), yet I am far from being a PHP pro so I am not too sure about coding style et. al. If you like the idea but think this should be handled differently, feel free to discard the PR and implement the feature in a more fitting fashion.

Thanks!