{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11497","labels_url":"https://api.github.com/repos/laravel/framework/issues/11497/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11497/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11497/events","html_url":"https://github.com/laravel/framework/pull/11497","id":123724562,"number":11497,"title":"[5.2] Added RouteFound event","user":{"login":"acasar","id":6329543,"avatar_url":"https://avatars.githubusercontent.com/u/6329543?v=3","gravatar_id":"","url":"https://api.github.com/users/acasar","html_url":"https://github.com/acasar","followers_url":"https://api.github.com/users/acasar/followers","following_url":"https://api.github.com/users/acasar/following{/other_user}","gists_url":"https://api.github.com/users/acasar/gists{/gist_id}","starred_url":"https://api.github.com/users/acasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acasar/subscriptions","organizations_url":"https://api.github.com/users/acasar/orgs","repos_url":"https://api.github.com/users/acasar/repos","events_url":"https://api.github.com/users/acasar/events{/privacy}","received_events_url":"https://api.github.com/users/acasar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-23T21:24:31Z","updated_at":"2015-12-24T11:03:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/11497","html_url":"https://github.com/laravel/framework/pull/11497","diff_url":"https://github.com/laravel/framework/pull/11497.diff","patch_url":"https://github.com/laravel/framework/pull/11497.patch"},"body":"Fixes https://github.com/laravel/framework/issues/11496\r\n\r\nBasically I added a ``RouteFound`` event, so that we can inject Controller namespace based on the HTTP api-version header before implicit bindings are resolved (``RouteMatched`` is fired too late).\r\n\r\n```php\r\nRoute::found(function(RouteFoundEvent $event) {\r\n    // modify $event->route as needed\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/167093616","html_url":"https://github.com/laravel/framework/pull/11497#issuecomment-167093616","issue_url":"https://api.github.com/repos/laravel/framework/issues/11497","id":167093616,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T11:03:58Z","updated_at":"2015-12-24T11:03:58Z","body":"Yhe event should not extend the other event."}}