I almost agree with what you said, just static call in my mind is not best practice. and also for matching we should, we should be able to give uri or request object to match function.
because I belive in some cases uri and http method are not only options we make our matching strategy based on them. for example consider based on "accept-lang" header or ... you want to have different callables. $router->add(method, 'uri', callable) $router->get('uri', callable) $router->post(...) $router->match($request) -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/c9a913d3-8751-4c86-978f-aaffd8d9b3fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.