{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/24259","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/24259/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/24259/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/24259/events","html_url":"https://github.com/symfony/symfony/issues/24259","id":258815831,"number":24259,"title":"[security-csrf] ","user":{"login":"ahundiak","id":130533,"avatar_url":"https://avatars1.githubusercontent.com/u/130533?v=4","gravatar_id":"","url":"https://api.github.com/users/ahundiak","html_url":"https://github.com/ahundiak","followers_url":"https://api.github.com/users/ahundiak/followers","following_url":"https://api.github.com/users/ahundiak/following{/other_user}","gists_url":"https://api.github.com/users/ahundiak/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundiak/subscriptions","organizations_url":"https://api.github.com/users/ahundiak/orgs","repos_url":"https://api.github.com/users/ahundiak/repos","events_url":"https://api.github.com/users/ahundiak/events{/privacy}","received_events_url":"https://api.github.com/users/ahundiak/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":148416,"url":"https://api.github.com/repos/symfony/symfony/labels/FrameworkBundle","name":"FrameworkBundle","color":"DDDDDD","default":false},{"id":99600,"url":"https://api.github.com/repos/symfony/symfony/labels/Security","name":"Security","color":"DDDDDD","default":false},{"id":58752396,"url":"https://api.github.com/repos/symfony/symfony/labels/SecurityBundle","name":"SecurityBundle","color":"DDDDDD","default":false},{"id":237003792,"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T13:14:07Z","updated_at":"2017-09-19T17:09:30Z","closed_at":null,"author_association":"NONE","body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | yes\r\n| Feature request? | no\r\n| BC Break report? | no\r\n| RFC?             | no\r\n| Symfony version  | 3.3.9\r\n\r\nApologies in advance if this is just operator error but I don't think the security.csrf.token_generator service is being defined.  It used to be defined in the Framework bundle and I don't think it got moved to the Security bundle during the recent cleanup.\r\n\r\n    composer create-project \"symfony/skeleton:^3.3\" sec339\r\n    cd sec339\r\n    composer require console\r\n    composer require security-bundle\r\n    bin/console debug:container --show-private security # No csrf services\r\n \r\nI think it is just a question of moving the security_csrf.xml from the old FrameworkBundle to the new SecurityBundle.\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/330607555","html_url":"https://github.com/symfony/symfony/issues/24259#issuecomment-330607555","issue_url":"https://api.github.com/repos/symfony/symfony/issues/24259","id":330607555,"user":{"login":"chalasr","id":7502063,"avatar_url":"https://avatars0.githubusercontent.com/u/7502063?v=4","gravatar_id":"","url":"https://api.github.com/users/chalasr","html_url":"https://github.com/chalasr","followers_url":"https://api.github.com/users/chalasr/followers","following_url":"https://api.github.com/users/chalasr/following{/other_user}","gists_url":"https://api.github.com/users/chalasr/gists{/gist_id}","starred_url":"https://api.github.com/users/chalasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalasr/subscriptions","organizations_url":"https://api.github.com/users/chalasr/orgs","repos_url":"https://api.github.com/users/chalasr/repos","events_url":"https://api.github.com/users/chalasr/events{/privacy}","received_events_url":"https://api.github.com/users/chalasr/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T17:09:30Z","updated_at":"2017-09-19T17:09:30Z","author_association":"MEMBER","body":"In fact I think this file should have been added in SecurityBundle instead of FrameworkBundle at time it to introduce it (https://github.com/symfony/symfony/pull/6554). \r\n\r\nIf we want to move it now (I think we should) we have to keep BC for people using FrameworkBundle but not SecurityBundle. \r\nWe could  detect that `SecurityBundle` is not enabled and register+flag as deprecated all the services this file actually provides. If `SecurityBundle` is enabled, it means that the file has been loaded (once moved) so it's fine."}}
{"actor":{"display_login":"chalasr"}}