{"action":"created","issue":{"url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/91","labels_url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/91/comments","events_url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/91/events","html_url":"https://github.com/tedious/TedivmStashBundle/issues/91","id":124422250,"number":91,"title":"Unrecognized option \"Apc\" under \"stash.caches.default\"","user":{"login":"layanto","id":245078,"avatar_url":"https://avatars.githubusercontent.com/u/245078?v=3","gravatar_id":"","url":"https://api.github.com/users/layanto","html_url":"https://github.com/layanto","followers_url":"https://api.github.com/users/layanto/followers","following_url":"https://api.github.com/users/layanto/following{/other_user}","gists_url":"https://api.github.com/users/layanto/gists{/gist_id}","starred_url":"https://api.github.com/users/layanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layanto/subscriptions","organizations_url":"https://api.github.com/users/layanto/orgs","repos_url":"https://api.github.com/users/layanto/repos","events_url":"https://api.github.com/users/layanto/events{/privacy}","received_events_url":"https://api.github.com/users/layanto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-31T01:40:48Z","updated_at":"2016-01-06T20:55:43Z","closed_at":null,"body":"With this in config.yml:\r\n```\r\nstash:\r\n    drivers: [ Apc ]\r\n    registerDoctrineAdapter: true\r\n    Apc:\r\n        namespace: sf_stash_\r\n```\r\n\r\nWhen doing app/console cache:clear with Symfony 2.8.1, getting this error:\r\nUnrecognized option \"Apc\" under \"stash.caches.default\""},"comment":{"url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/comments/169458321","html_url":"https://github.com/tedious/TedivmStashBundle/issues/91#issuecomment-169458321","issue_url":"https://api.github.com/repos/tedious/TedivmStashBundle/issues/91","id":169458321,"user":{"login":"layanto","id":245078,"avatar_url":"https://avatars.githubusercontent.com/u/245078?v=3","gravatar_id":"","url":"https://api.github.com/users/layanto","html_url":"https://github.com/layanto","followers_url":"https://api.github.com/users/layanto/followers","following_url":"https://api.github.com/users/layanto/following{/other_user}","gists_url":"https://api.github.com/users/layanto/gists{/gist_id}","starred_url":"https://api.github.com/users/layanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layanto/subscriptions","organizations_url":"https://api.github.com/users/layanto/orgs","repos_url":"https://api.github.com/users/layanto/repos","events_url":"https://api.github.com/users/layanto/events{/privacy}","received_events_url":"https://api.github.com/users/layanto/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T20:55:43Z","updated_at":"2016-01-06T20:55:43Z","body":"I think there are two options:\r\n1. Apc must be enabled in cli.\r\n2. StashBundle not to dynamically at runtime decide what is valid configuration (via Dependency Injection Configuration.php). All configuration options should be available to be used in config.yml and Stash will only use the ones for which the drivers are available. This way having Apc configured will not raise error from cli where Apc is not enabled. \r\n\r\nOption 1 clearly easier but is a work around. Option 2 I think is the better solution. "}}