{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/5997","repository_url":"https://api.github.com/repos/symfony/symfony-docs","labels_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5997/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5997/comments","events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5997/events","html_url":"https://github.com/symfony/symfony-docs/pull/5997","id":121512067,"number":5997,"title":"Update dependency-injection.rst","user":{"login":"TheKnarf","id":213777,"avatar_url":"https://avatars.githubusercontent.com/u/213777?v=3","gravatar_id":"","url":"https://api.github.com/users/TheKnarf","html_url":"https://github.com/TheKnarf","followers_url":"https://api.github.com/users/TheKnarf/followers","following_url":"https://api.github.com/users/TheKnarf/following{/other_user}","gists_url":"https://api.github.com/users/TheKnarf/gists{/gist_id}","starred_url":"https://api.github.com/users/TheKnarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheKnarf/subscriptions","organizations_url":"https://api.github.com/users/TheKnarf/orgs","repos_url":"https://api.github.com/users/TheKnarf/repos","events_url":"https://api.github.com/users/TheKnarf/events{/privacy}","received_events_url":"https://api.github.com/users/TheKnarf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T15:32:46Z","updated_at":"2016-02-07T12:00:21Z","closed_at":"2016-02-07T12:00:21Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/5997","html_url":"https://github.com/symfony/symfony-docs/pull/5997","diff_url":"https://github.com/symfony/symfony-docs/pull/5997.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/5997.patch"},"body":"If you don't update the context then you can't use this framework to setup routes that require any thing else than GET. In other words if you try using this for a rest api it will just not work."},"comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments/181000481","html_url":"https://github.com/symfony/symfony-docs/pull/5997#issuecomment-181000481","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5997","id":181000481,"user":{"login":"WouterJ","id":749025,"avatar_url":"https://avatars.githubusercontent.com/u/749025?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T12:00:21Z","updated_at":"2016-02-07T12:00:21Z","body":"Hi @TheKnarf! Thank you for contributing to the docs! I don't think this is needed though, as this method is already called by the `RouterListener` ([ref](https://github.com/symfony/http-kernel/blob/e730c270c3a423f5ad2190c3aed8b333ed33dc93/EventListener/RouterListener.php#L71)). So for now, I'm going to close this PR.\r\n\r\nHowever, as you probably hit some issue when trying out the code of this article, can you maybe show some more details (if you still have them, I realize we were very slow responding to this PR)?"}}