{"action":"created","issue":{"url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/135","labels_url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/135/comments","events_url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/135/events","html_url":"https://github.com/Gregwar/CaptchaBundle/issues/135","id":93515664,"number":135,"title":"Usage of \"pattern\" in routing.yml","user":{"login":"iltar","id":1754678,"avatar_url":"https://avatars.githubusercontent.com/u/1754678?v=3","gravatar_id":"","url":"https://api.github.com/users/iltar","html_url":"https://github.com/iltar","followers_url":"https://api.github.com/users/iltar/followers","following_url":"https://api.github.com/users/iltar/following{/other_user}","gists_url":"https://api.github.com/users/iltar/gists{/gist_id}","starred_url":"https://api.github.com/users/iltar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iltar/subscriptions","organizations_url":"https://api.github.com/users/iltar/orgs","repos_url":"https://api.github.com/users/iltar/repos","events_url":"https://api.github.com/users/iltar/events{/privacy}","received_events_url":"https://api.github.com/users/iltar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-07T12:06:32Z","updated_at":"2015-08-18T18:21:35Z","closed_at":null,"body":"As of Symfony 2.7, deprecations are being thrown in places where code will be removed. One of those deprecations is the usage of `pattern` in the routing config.\r\n```\r\nDEPRECATED - The \"pattern\" option in file \"/vendor/gregwar/captcha-bundle/Resources/config/routing/routing.yml\" is deprecated since version 2.2 and will be removed in 3.0. Use the \"path\" option in the route definition instead.\r\n```\r\n`routing.yml`\r\n```\r\ngregwar_captcha.generate_captcha:\r\n    pattern:        /generate-captcha/{key}\r\n    defaults:       { _controller: GregwarCaptchaBundle:Captcha:generateCaptcha }\r\n```\r\n`pattern` should be replaced with `path`. However, this fix will break symfony 2.1 as this deprecation is of 2.2 and higher. This brings another issue: Should Symfony 2.1 still be supported? The currently maintained symfony versions are 2.3, 2.6 and 2.7.\r\n\r\nI could write a pull request but that means 2.1 would no longer be supported.\r\n"},"comment":{"url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/comments/132306928","html_url":"https://github.com/Gregwar/CaptchaBundle/issues/135#issuecomment-132306928","issue_url":"https://api.github.com/repos/Gregwar/CaptchaBundle/issues/135","id":132306928,"user":{"login":"Gregwar","id":367022,"avatar_url":"https://avatars.githubusercontent.com/u/367022?v=3","gravatar_id":"","url":"https://api.github.com/users/Gregwar","html_url":"https://github.com/Gregwar","followers_url":"https://api.github.com/users/Gregwar/followers","following_url":"https://api.github.com/users/Gregwar/following{/other_user}","gists_url":"https://api.github.com/users/Gregwar/gists{/gist_id}","starred_url":"https://api.github.com/users/Gregwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gregwar/subscriptions","organizations_url":"https://api.github.com/users/Gregwar/orgs","repos_url":"https://api.github.com/users/Gregwar/repos","events_url":"https://api.github.com/users/Gregwar/events{/privacy}","received_events_url":"https://api.github.com/users/Gregwar/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T18:21:35Z","updated_at":"2015-08-18T18:21:35Z","body":"I guess this bundle can stop supporting so old versions\r\nI may add a tag before doing that"}}