{"action":"created","issue":{"url":"https://api.github.com/repos/klein/klein.php/issues/202","repository_url":"https://api.github.com/repos/klein/klein.php","labels_url":"https://api.github.com/repos/klein/klein.php/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/klein/klein.php/issues/202/comments","events_url":"https://api.github.com/repos/klein/klein.php/issues/202/events","html_url":"https://github.com/klein/klein.php/issues/202","id":31614532,"number":202,"title":"getNameFor","user":{"login":"MrBubbleSquare","id":1337562,"avatar_url":"https://avatars.githubusercontent.com/u/1337562?v=3","gravatar_id":"","url":"https://api.github.com/users/MrBubbleSquare","html_url":"https://github.com/MrBubbleSquare","followers_url":"https://api.github.com/users/MrBubbleSquare/followers","following_url":"https://api.github.com/users/MrBubbleSquare/following{/other_user}","gists_url":"https://api.github.com/users/MrBubbleSquare/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBubbleSquare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBubbleSquare/subscriptions","organizations_url":"https://api.github.com/users/MrBubbleSquare/orgs","repos_url":"https://api.github.com/users/MrBubbleSquare/repos","events_url":"https://api.github.com/users/MrBubbleSquare/events{/privacy}","received_events_url":"https://api.github.com/users/MrBubbleSquare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/klein/klein.php/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/klein/klein.php/labels/May%20Not%20Implement","name":"May Not Implement","color":"cccccc"}],"state":"open","locked":false,"assignee":{"login":"Rican7","id":742384,"avatar_url":"https://avatars.githubusercontent.com/u/742384?v=3","gravatar_id":"","url":"https://api.github.com/users/Rican7","html_url":"https://github.com/Rican7","followers_url":"https://api.github.com/users/Rican7/followers","following_url":"https://api.github.com/users/Rican7/following{/other_user}","gists_url":"https://api.github.com/users/Rican7/gists{/gist_id}","starred_url":"https://api.github.com/users/Rican7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rican7/subscriptions","organizations_url":"https://api.github.com/users/Rican7/orgs","repos_url":"https://api.github.com/users/Rican7/repos","events_url":"https://api.github.com/users/Rican7/events{/privacy}","received_events_url":"https://api.github.com/users/Rican7/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/klein/klein.php/milestones/3","html_url":"https://github.com/klein/klein.php/milestones/2.2","labels_url":"https://api.github.com/repos/klein/klein.php/milestones/3/labels","id":726214,"number":3,"title":"2.2","description":"","creator":{"login":"Rican7","id":742384,"avatar_url":"https://avatars.githubusercontent.com/u/742384?v=3","gravatar_id":"","url":"https://api.github.com/users/Rican7","html_url":"https://github.com/Rican7","followers_url":"https://api.github.com/users/Rican7/followers","following_url":"https://api.github.com/users/Rican7/following{/other_user}","gists_url":"https://api.github.com/users/Rican7/gists{/gist_id}","starred_url":"https://api.github.com/users/Rican7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rican7/subscriptions","organizations_url":"https://api.github.com/users/Rican7/orgs","repos_url":"https://api.github.com/users/Rican7/repos","events_url":"https://api.github.com/users/Rican7/events{/privacy}","received_events_url":"https://api.github.com/users/Rican7/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":11,"state":"open","created_at":"2014-07-20T01:34:16Z","updated_at":"2014-12-16T01:08:24Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-04-16T05:58:41Z","updated_at":"2016-03-09T19:19:19Z","closed_at":null,"body":"I need something like this its very important.\r\n```\r\n[...]\r\npublic function getNameFor($route_path){\r\n[...]\r\n}\r\n[...]\r\n\r\n$klein->respond(array(\"GET\", \"POST\"), \"/Group/Edit/[*:groupname]?\", function ($request, $response, $service, $app){\r\n[...]\r\n})->setName(\"GroupEdit\");\r\n\r\n$route_name = $klein->getNameFor($request->pathname());\r\n```"},"comment":{"url":"https://api.github.com/repos/klein/klein.php/issues/comments/194462032","html_url":"https://github.com/klein/klein.php/issues/202#issuecomment-194462032","issue_url":"https://api.github.com/repos/klein/klein.php/issues/202","id":194462032,"user":{"login":"jedi58","id":99506,"avatar_url":"https://avatars.githubusercontent.com/u/99506?v=3","gravatar_id":"","url":"https://api.github.com/users/jedi58","html_url":"https://github.com/jedi58","followers_url":"https://api.github.com/users/jedi58/followers","following_url":"https://api.github.com/users/jedi58/following{/other_user}","gists_url":"https://api.github.com/users/jedi58/gists{/gist_id}","starred_url":"https://api.github.com/users/jedi58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedi58/subscriptions","organizations_url":"https://api.github.com/users/jedi58/orgs","repos_url":"https://api.github.com/users/jedi58/repos","events_url":"https://api.github.com/users/jedi58/events{/privacy}","received_events_url":"https://api.github.com/users/jedi58/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T19:19:19Z","updated_at":"2016-03-09T19:19:19Z","body":"would use `!empty($this->matches)` instead of `count($this->matches) > 0`"}}