{"action":"created","issue":{"url":"https://api.github.com/repos/snc/SncRedisBundle/issues/285","repository_url":"https://api.github.com/repos/snc/SncRedisBundle","labels_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/285/comments","events_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/285/events","html_url":"https://github.com/snc/SncRedisBundle/issues/285","id":170138104,"number":285,"title":"Disable caching for config_dev.yml","user":{"login":"bourdeau","id":1926353,"avatar_url":"https://avatars.githubusercontent.com/u/1926353?v=3","gravatar_id":"","url":"https://api.github.com/users/bourdeau","html_url":"https://github.com/bourdeau","followers_url":"https://api.github.com/users/bourdeau/followers","following_url":"https://api.github.com/users/bourdeau/following{/other_user}","gists_url":"https://api.github.com/users/bourdeau/gists{/gist_id}","starred_url":"https://api.github.com/users/bourdeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bourdeau/subscriptions","organizations_url":"https://api.github.com/users/bourdeau/orgs","repos_url":"https://api.github.com/users/bourdeau/repos","events_url":"https://api.github.com/users/bourdeau/events{/privacy}","received_events_url":"https://api.github.com/users/bourdeau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T10:57:25Z","updated_at":"2016-09-21T12:37:42Z","closed_at":null,"body":"Hi there,\r\n\r\nI looked in the doc, on the web, in the issues but I didn't find an easy way to disable Redis when being in dev env (except messing around with how the kernel load bundles, but it's no a valid option according to me). I know this issue has already been mentioned in #253\r\n\r\nIt would be really nice as for now one might have some surprises developing with redis on.\r\n\r\nThanks for your attention\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/snc/SncRedisBundle/issues/comments/248599113","html_url":"https://github.com/snc/SncRedisBundle/issues/285#issuecomment-248599113","issue_url":"https://api.github.com/repos/snc/SncRedisBundle/issues/285","id":248599113,"user":{"login":"talisman-innovations","id":15648551,"avatar_url":"https://avatars.githubusercontent.com/u/15648551?v=3","gravatar_id":"","url":"https://api.github.com/users/talisman-innovations","html_url":"https://github.com/talisman-innovations","followers_url":"https://api.github.com/users/talisman-innovations/followers","following_url":"https://api.github.com/users/talisman-innovations/following{/other_user}","gists_url":"https://api.github.com/users/talisman-innovations/gists{/gist_id}","starred_url":"https://api.github.com/users/talisman-innovations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talisman-innovations/subscriptions","organizations_url":"https://api.github.com/users/talisman-innovations/orgs","repos_url":"https://api.github.com/users/talisman-innovations/repos","events_url":"https://api.github.com/users/talisman-innovations/events{/privacy}","received_events_url":"https://api.github.com/users/talisman-innovations/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T12:37:42Z","updated_at":"2016-09-21T12:37:42Z","body":"Hi\r\n\r\nI managed to setup Symfony so that I have no redis in the dev environment, but have it configured for test and prod environments.  \r\n\r\nAdd the bundle to composer\r\nAdd the snc_redis: configuration to config_test.yml and config_prod.yml.\r\nAdd the following to AppKernel.php \r\n\r\n      if (in_array($this->getEnvironment(), array('prod', 'test'), true)) {\r\n            $bundles[] = new Snc\\RedisBundle\\SncRedisBundle();\r\n        }\r\n\r\nSeems to work fine for me.  You can adjust if you don't want redis in the test environment etc.\r\n\r\nSteve\r\n"}}
{"actor":{"display_login":"talisman-innovations"}}