{"action":"created","issue":{"url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/29","repository_url":"https://api.github.com/repos/PHP-DI/Slim-Bridge","labels_url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/29/comments","events_url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/29/events","html_url":"https://github.com/PHP-DI/Slim-Bridge/pull/29","id":273897862,"number":29,"title":"Fix #25 Inject request attributes","user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars3.githubusercontent.com/u/720328?v=4","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-14T18:35:37Z","updated_at":"2017-11-14T19:06:16Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/pulls/29","html_url":"https://github.com/PHP-DI/Slim-Bridge/pull/29","diff_url":"https://github.com/PHP-DI/Slim-Bridge/pull/29.diff","patch_url":"https://github.com/PHP-DI/Slim-Bridge/pull/29.patch"},"body":"Currently route placeholders are injected in controllers. This was wrongly called \"request attribute\" in the documentation.\r\n\r\nThis adds the ability to inject (actual) request attributes in controller parameters too.\r\n\r\nRoute placeholders take priority over request attributes.\r\n\r\nExample:\r\n\r\n```php\r\n$app->add(function ($request, $response, $next) {\r\n    $request = $request->withAttribute('name', 'Bob');\r\n    return $next($request, $response);\r\n});\r\n\r\n$app->get('/', function ($name, ResponseInterface $response) {\r\n    $response->getBody()->write('Hello ' . $name);\r\n    return $response;\r\n});\r\n```\r\n\r\nWill show `Hello Bob`."},"comment":{"url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/comments/344363713","html_url":"https://github.com/PHP-DI/Slim-Bridge/pull/29#issuecomment-344363713","issue_url":"https://api.github.com/repos/PHP-DI/Slim-Bridge/issues/29","id":344363713,"user":{"login":"tflight","id":4959691,"avatar_url":"https://avatars1.githubusercontent.com/u/4959691?v=4","gravatar_id":"","url":"https://api.github.com/users/tflight","html_url":"https://github.com/tflight","followers_url":"https://api.github.com/users/tflight/followers","following_url":"https://api.github.com/users/tflight/following{/other_user}","gists_url":"https://api.github.com/users/tflight/gists{/gist_id}","starred_url":"https://api.github.com/users/tflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tflight/subscriptions","organizations_url":"https://api.github.com/users/tflight/orgs","repos_url":"https://api.github.com/users/tflight/repos","events_url":"https://api.github.com/users/tflight/events{/privacy}","received_events_url":"https://api.github.com/users/tflight/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T19:06:15Z","updated_at":"2017-11-14T19:06:15Z","author_association":"CONTRIBUTOR","body":"I like it, thanks @mnapoli!"}}
{"actor":{"display_login":"tflight"}}