{"action":"created","issue":{"url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/60","repository_url":"https://api.github.com/repos/nelmio/NelmioCorsBundle","labels_url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/60/comments","events_url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/60/events","html_url":"https://github.com/nelmio/NelmioCorsBundle/issues/60","id":152610052,"number":60,"title":"Automatic rule extraction based on routing.","user":{"login":"Padam87","id":776488,"avatar_url":"https://avatars.githubusercontent.com/u/776488?v=3","gravatar_id":"","url":"https://api.github.com/users/Padam87","html_url":"https://github.com/Padam87","followers_url":"https://api.github.com/users/Padam87/followers","following_url":"https://api.github.com/users/Padam87/following{/other_user}","gists_url":"https://api.github.com/users/Padam87/gists{/gist_id}","starred_url":"https://api.github.com/users/Padam87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Padam87/subscriptions","organizations_url":"https://api.github.com/users/Padam87/orgs","repos_url":"https://api.github.com/users/Padam87/repos","events_url":"https://api.github.com/users/Padam87/events{/privacy}","received_events_url":"https://api.github.com/users/Padam87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-02T18:13:12Z","updated_at":"2016-05-04T11:34:56Z","closed_at":null,"body":"Hi,\r\n\r\nI've created a small addition which automatically extracts methods from the routing, because I always forget to update the config.\r\n\r\nI think the bundle should have a feature like this (in an opt-in version of course).\r\n\r\nhttps://gist.github.com/Padam87/ad4434502de71e32626fbb4daa7f1b47\r\n\r\nIf its okay, i will submit a PR. Alernatively, we could create a command which dumps the path rules to yaml."},"comment":{"url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/comments/216834703","html_url":"https://github.com/nelmio/NelmioCorsBundle/issues/60#issuecomment-216834703","issue_url":"https://api.github.com/repos/nelmio/NelmioCorsBundle/issues/60","id":216834703,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T11:34:56Z","updated_at":"2016-05-04T11:34:56Z","body":"OK I see. Would be good to combine this with #43 to do it only for annotated routes and then it'd be quite powerful I think."}}