I would like to avoid static methods, they are harder to test. I prefer something (very basic example) like this
https://gist.github.com/damianopetrungaro/d3da280e20bd5b22c09c64174114ac2a We should also discuss if is better to call the "add" method or "map". I don't know which one is the most diffused. I imagine like some interfaces like: RouteInterface as representation of the single route, RouterInterface as collector of Routes, RouteMatcherInterface as object that can contains more RouterInterface that will match and dispatch the action. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/0d314d06-218c-49b2-afc6-c2df7ec8233f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
