{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/394","repository_url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle","labels_url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/394/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/394/events","html_url":"https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/394","id":126658160,"number":394,"title":"Allow multiple @Security","user":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-01-14T13:50:24Z","updated_at":"2016-10-13T12:47:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/pulls/394","html_url":"https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/394","diff_url":"https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/394.diff","patch_url":"https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/394.patch"},"body":"The current behavior is not cool because it allows user to use only one\r\n`@Security` tag per action OR per class. BUT Nothing prevents user to put\r\na tag on the class AND another one on the action. And it's even worst\r\nbecause only the tag on the action will be used.\r\n\r\nBecause almost all annotations allow multiple instances (like `@Route`,\r\n`@Template`, `@Method`) I think it's really convenient to allow multiple\r\n`@Security`, and more over to fix a bug.\r\n\r\nI already see theses PR;\r\n* https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/368\r\n* https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/370\r\n\r\nBut they are not perfect."},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/comments/253503119","html_url":"https://github.com/sensiolabs/SensioFrameworkExtraBundle/pull/394#issuecomment-253503119","issue_url":"https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/issues/394","id":253503119,"user":{"login":"markyboryslav","id":2134057,"avatar_url":"https://avatars.githubusercontent.com/u/2134057?v=3","gravatar_id":"","url":"https://api.github.com/users/markyboryslav","html_url":"https://github.com/markyboryslav","followers_url":"https://api.github.com/users/markyboryslav/followers","following_url":"https://api.github.com/users/markyboryslav/following{/other_user}","gists_url":"https://api.github.com/users/markyboryslav/gists{/gist_id}","starred_url":"https://api.github.com/users/markyboryslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markyboryslav/subscriptions","organizations_url":"https://api.github.com/users/markyboryslav/orgs","repos_url":"https://api.github.com/users/markyboryslav/repos","events_url":"https://api.github.com/users/markyboryslav/events{/privacy}","received_events_url":"https://api.github.com/users/markyboryslav/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T12:47:53Z","updated_at":"2016-10-13T12:47:53Z","body":"👍"}}
{"actor":{"display_login":"markyboryslav"}}