{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/16822","labels_url":"https://api.github.com/repos/symfony/symfony/issues/16822/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/16822/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/16822/events","html_url":"https://github.com/symfony/symfony/pull/16822","id":120174075,"number":16822,"title":"[FrameworkBundle][Validator] Fix apc cache service deprecation","user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-12-03T13:44:17Z","updated_at":"2016-01-16T20:25:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/16822","html_url":"https://github.com/symfony/symfony/pull/16822","diff_url":"https://github.com/symfony/symfony/pull/16822.diff","patch_url":"https://github.com/symfony/symfony/pull/16822.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | yes\r\n| Tests pass?   | yes\r\n| Fixed tickets | -\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nRelated to #16795\r\n\r\nI guess the deprecation was on the wrong service.\r\nAlso, no deprecation notice was triggered about using `\"apc\"` as the value of the `framework.validation.cache` configuration option. This PR adds the missing deprecation.\r\n\r\n> :memo: _NOTE_: The standard edition will need to be updated [here](https://github.com/symfony/symfony-standard/blob/2.8/app/config/config_prod.yml#L6). "},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/172253483","html_url":"https://github.com/symfony/symfony/pull/16822#issuecomment-172253483","issue_url":"https://api.github.com/repos/symfony/symfony/issues/16822","id":172253483,"user":{"login":"weaverryan","id":121003,"avatar_url":"https://avatars.githubusercontent.com/u/121003?v=3","gravatar_id":"","url":"https://api.github.com/users/weaverryan","html_url":"https://github.com/weaverryan","followers_url":"https://api.github.com/users/weaverryan/followers","following_url":"https://api.github.com/users/weaverryan/following{/other_user}","gists_url":"https://api.github.com/users/weaverryan/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverryan/subscriptions","organizations_url":"https://api.github.com/users/weaverryan/orgs","repos_url":"https://api.github.com/users/weaverryan/repos","events_url":"https://api.github.com/users/weaverryan/events{/privacy}","received_events_url":"https://api.github.com/users/weaverryan/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T20:25:16Z","updated_at":"2016-01-16T20:25:16Z","body":":+1: \r\n\r\nIn summary, this:\r\n\r\n1) Deprecates using `apc` as the `cache` key - you must use a service\r\n2) Re-adds the `validator.mapping.cache.doctrine.apc` service, so you can use it for convenience (and we will discuss later if we want to deprecate this service for 4.0 removal).\r\n\r\nAfter this is merged into 3.0, the ability to pass `apc` as the key to `cache` can be completely removed (https://github.com/symfony/symfony/pull/16795/files#diff-5e7347edce37c5886ec67b7ba02f3a9cL439). This is *not* a BC break, because it's impossible to use this already on 3.0, because using this config key gives you the `validator.mapping.cache.apc` service, which is connected with the `ApcCache` that no longer exists in 3.0: https://github.com/symfony/symfony/pull/16795/files#diff-c2459e2c1a786adcaaab00b70630b67fL31\r\n\r\nSo, we need to:\r\n\r\nA) merge this PR (and merge up to 3.0)\r\nB) remove the Configuration code that allowed you to use the `apc` key in 3.0 (e.g. cherry-pick https://github.com/symfony/symfony/pull/16795/files#diff-5e7347edce37c5886ec67b7ba02f3a9cL439).\r\n\r\nAnd I think we're ready to do this now."}}