{"action":"created","issue":{"url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/133","labels_url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/133/comments","events_url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/133/events","html_url":"https://github.com/zf-fr/zfr-rest/issues/133","id":28568353,"number":133,"title":"Add a previous match resource for collection controllers","user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-01T23:15:47Z","updated_at":"2015-01-23T16:52:59Z","closed_at":"2015-01-23T16:52:59Z","body":"Currently, if you do a POST to a collection (for instance /users/1/tweets), you receive a tweet instance in the \"post\" method of the TweetListController, however there is no way to know the previous match (user n°1) - aka context -.\r\n\r\nI'm not sure how to tackle this, but I'd like to have a second implicit parameter passed to each collection controller, so that:\r\n\r\n```php\r\npublic function post(Tweet $tweet);\r\n```\r\n\r\nyou can write:\r\n\r\n```php\r\npublic function post(Tweet $tweet, $context);\r\n```\r\n\r\nwhere context can be anything (if /users/1/tweets, $context would be a $user, if /anything/1/tweet, $context would an \"Anything\")\r\n\r\nIdea about how to implement that @Ocramius @danizord ?"},"comment":{"url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/comments/71224352","html_url":"https://github.com/zf-fr/zfr-rest/issues/133#issuecomment-71224352","issue_url":"https://api.github.com/repos/zf-fr/zfr-rest/issues/133","id":71224352,"user":{"login":"bakura10","id":1198915,"avatar_url":"https://avatars.githubusercontent.com/u/1198915?v=3","gravatar_id":"","url":"https://api.github.com/users/bakura10","html_url":"https://github.com/bakura10","followers_url":"https://api.github.com/users/bakura10/followers","following_url":"https://api.github.com/users/bakura10/following{/other_user}","gists_url":"https://api.github.com/users/bakura10/gists{/gist_id}","starred_url":"https://api.github.com/users/bakura10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakura10/subscriptions","organizations_url":"https://api.github.com/users/bakura10/orgs","repos_url":"https://api.github.com/users/bakura10/repos","events_url":"https://api.github.com/users/bakura10/events{/privacy}","received_events_url":"https://api.github.com/users/bakura10/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T16:52:59Z","updated_at":"2015-01-23T16:52:59Z","body":"No longer apply with #184 "}}