{"action":"created","issue":{"url":"https://api.github.com/repos/pennyphp/penny/issues/16","labels_url":"https://api.github.com/repos/pennyphp/penny/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/pennyphp/penny/issues/16/comments","events_url":"https://api.github.com/repos/pennyphp/penny/issues/16/events","html_url":"https://github.com/pennyphp/penny/issues/16","id":102968889,"number":16,"title":"RouteMatched Object","user":{"login":"gianarb","id":1630267,"avatar_url":"https://avatars.githubusercontent.com/u/1630267?v=3","gravatar_id":"","url":"https://api.github.com/users/gianarb","html_url":"https://github.com/gianarb","followers_url":"https://api.github.com/users/gianarb/followers","following_url":"https://api.github.com/users/gianarb/following{/other_user}","gists_url":"https://api.github.com/users/gianarb/gists{/gist_id}","starred_url":"https://api.github.com/users/gianarb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianarb/subscriptions","organizations_url":"https://api.github.com/users/gianarb/orgs","repos_url":"https://api.github.com/users/gianarb/repos","events_url":"https://api.github.com/users/gianarb/events{/privacy}","received_events_url":"https://api.github.com/users/gianarb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pennyphp/penny/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T07:42:40Z","updated_at":"2015-10-10T12:10:21Z","closed_at":null,"body":"Create a RouteMatch object to increase ease to change router library"},"comment":{"url":"https://api.github.com/repos/pennyphp/penny/issues/comments/147082597","html_url":"https://github.com/pennyphp/penny/issues/16#issuecomment-147082597","issue_url":"https://api.github.com/repos/pennyphp/penny/issues/16","id":147082597,"user":{"login":"wdalmut","id":551974,"avatar_url":"https://avatars.githubusercontent.com/u/551974?v=3","gravatar_id":"","url":"https://api.github.com/users/wdalmut","html_url":"https://github.com/wdalmut","followers_url":"https://api.github.com/users/wdalmut/followers","following_url":"https://api.github.com/users/wdalmut/following{/other_user}","gists_url":"https://api.github.com/users/wdalmut/gists{/gist_id}","starred_url":"https://api.github.com/users/wdalmut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdalmut/subscriptions","organizations_url":"https://api.github.com/users/wdalmut/orgs","repos_url":"https://api.github.com/users/wdalmut/repos","events_url":"https://api.github.com/users/wdalmut/events{/privacy}","received_events_url":"https://api.github.com/users/wdalmut/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T12:10:21Z","updated_at":"2015-10-10T12:10:21Z","body":"Maybe a tiny interface?\r\n\r\n```php\r\ninterface RouteMatchInterface\r\n{\r\n    /** @return callable */\r\n    public function getCallable();\r\n    public function getName();\r\n}\r\n```\r\n\r\nany class \r\n\r\n```php\r\nclass RouteMatch implements RouteMatchInterface\r\n{\r\n    public function __construct($name, callable $dispatchable) { ... }\r\n    // Implements other methods...\r\n}\r\n```\r\n\r\nfunction myRouter($request) {\r\n    $matcher = //...\r\n    return $matcher->match($request); // returns a RouteMatchInterface object\r\n}"}}