{"action":"closed","issue":{"url":"https://api.github.com/repos/k-next/starterkit/issues/139","repository_url":"https://api.github.com/repos/k-next/starterkit","labels_url":"https://api.github.com/repos/k-next/starterkit/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/k-next/starterkit/issues/139/comments","events_url":"https://api.github.com/repos/k-next/starterkit/issues/139/events","html_url":"https://github.com/k-next/starterkit/issues/139","id":283983934,"node_id":"MDU6SXNzdWUyODM5ODM5MzQ=","number":139,"title":"[Router] Bind the route actions to the route object","user":{"login":"lukasbestle","id":1595007,"node_id":"MDQ6VXNlcjE1OTUwMDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1595007?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasbestle","html_url":"https://github.com/lukasbestle","followers_url":"https://api.github.com/users/lukasbestle/followers","following_url":"https://api.github.com/users/lukasbestle/following{/other_user}","gists_url":"https://api.github.com/users/lukasbestle/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasbestle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasbestle/subscriptions","organizations_url":"https://api.github.com/users/lukasbestle/orgs","repos_url":"https://api.github.com/users/lukasbestle/repos","events_url":"https://api.github.com/users/lukasbestle/events{/privacy}","received_events_url":"https://api.github.com/users/lukasbestle/received_events","type":"User","site_admin":false},"labels":[{"id":848081535,"node_id":"MDU6TGFiZWw4NDgwODE1MzU=","url":"https://api.github.com/repos/k-next/starterkit/labels/missing:%20discussion%20%F0%9F%97%A3","name":"missing: discussion 🗣","color":"FFC107","default":false},{"id":848081537,"node_id":"MDU6TGFiZWw4NDgwODE1Mzc=","url":"https://api.github.com/repos/k-next/starterkit/labels/type:%20enhancement%20%E2%9C%A8","name":"type: enhancement ✨","color":"b0ecd6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/k-next/starterkit/milestones/14","html_url":"https://github.com/k-next/starterkit/milestone/14","labels_url":"https://api.github.com/repos/k-next/starterkit/milestones/14/labels","id":3249592,"node_id":"MDk6TWlsZXN0b25lMzI0OTU5Mg==","number":14,"title":"Beta 1","description":"","creator":{"login":"distantnative","id":3788865,"node_id":"MDQ6VXNlcjM3ODg4NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/3788865?v=4","gravatar_id":"","url":"https://api.github.com/users/distantnative","html_url":"https://github.com/distantnative","followers_url":"https://api.github.com/users/distantnative/followers","following_url":"https://api.github.com/users/distantnative/following{/other_user}","gists_url":"https://api.github.com/users/distantnative/gists{/gist_id}","starred_url":"https://api.github.com/users/distantnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantnative/subscriptions","organizations_url":"https://api.github.com/users/distantnative/orgs","repos_url":"https://api.github.com/users/distantnative/repos","events_url":"https://api.github.com/users/distantnative/events{/privacy}","received_events_url":"https://api.github.com/users/distantnative/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":41,"state":"open","created_at":"2018-04-07T13:26:34Z","updated_at":"2018-06-19T11:59:50Z","due_on":"2018-04-27T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-12-21T19:40:27Z","updated_at":"2018-06-19T11:59:50Z","closed_at":"2018-06-19T11:59:50Z","author_association":"CONTRIBUTOR","body":"Given the following route:\r\n\r\n```\r\nkirby()->routes([\r\n    [\r\n        'pattern' => 'something',\r\n        'action'  => function() {\r\n            echo $this->pattern(); // something\r\n        }\r\n    ],\r\n]);\r\n```\r\n\r\n`$this` should probably be bound to the route object. However we should check if this behavior would break any other use-cases.\r\n\r\nSee also this forum topic: https://forum.getkirby.com/t/the-official-way-to-get-the-route-pattern/9247?u=lukasbestle"}}
{"actor":{"display_login":"bastianallgeier"}}