chriso/klein.php — pull request #168 by fliespl (2013-12-31 08:54:21+00:00)
Title: allow routes callable to be array

process it with call_user_func

In my case I am using Klein with custom Controllers initialized via Reflection class:

foreach(array('One', 'Two') as $controller) {
$cls = ucfirst($controller."Controller");
$rc = new ReflectionClass($cls);
$klein->with("/$controller", array($rc, 'newInstance'));
}