{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/3005","labels_url":"https://api.github.com/repos/bolt/bolt/issues/3005/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/3005/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/3005/events","html_url":"https://github.com/bolt/bolt/pull/3005","id":59693678,"number":3005,"title":"added config var replacement ability","user":{"login":"digitalkaoz","id":293591,"avatar_url":"https://avatars.githubusercontent.com/u/293591?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalkaoz","html_url":"https://github.com/digitalkaoz","followers_url":"https://api.github.com/users/digitalkaoz/followers","following_url":"https://api.github.com/users/digitalkaoz/following{/other_user}","gists_url":"https://api.github.com/users/digitalkaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalkaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalkaoz/subscriptions","organizations_url":"https://api.github.com/users/digitalkaoz/orgs","repos_url":"https://api.github.com/users/digitalkaoz/repos","events_url":"https://api.github.com/users/digitalkaoz/events{/privacy}","received_events_url":"https://api.github.com/users/digitalkaoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bolt/bolt/labels/enhancement","name":"enhancement","color":"75B5AA"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/bolt/bolt/milestones/18","html_url":"https://github.com/bolt/bolt/milestones/Bolt%202.2%20-%20Feature%20release","labels_url":"https://api.github.com/repos/bolt/bolt/milestones/18/labels","id":956607,"number":18,"title":"Bolt 2.2 - Feature release","description":"","creator":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":24,"state":"open","created_at":"2015-01-29T11:29:45Z","updated_at":"2015-03-26T07:16:27Z","due_on":"2015-03-31T23:00:00Z","closed_at":null},"comments":12,"created_at":"2015-03-03T19:39:24Z","updated_at":"2015-03-26T08:29:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bolt/bolt/pulls/3005","html_url":"https://github.com/bolt/bolt/pull/3005","diff_url":"https://github.com/bolt/bolt/pull/3005.diff","patch_url":"https://github.com/bolt/bolt/pull/3005.patch"},"body":"this PR adds the ability to use service container parameters in your configuration files.\r\n\r\nimagine you have this:\r\n\r\n```php\r\n$app['debug'] = true\r\n$app['mysql-host'] = \"lolcathost\"\r\n```\r\n\r\nyou can then use this vars in your yaml files like this\r\n\r\n```yaml\r\ndebug: %debug%\r\ndatabase:\r\n    host: %mysql-host%\r\n```\r\n\r\nthis is useful if you configure your application through environment variables (e.g. with this tool: https://github.com/ivoba/dotenv-service-provider)"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/86398120","html_url":"https://github.com/bolt/bolt/pull/3005#issuecomment-86398120","issue_url":"https://api.github.com/repos/bolt/bolt/issues/3005","id":86398120,"user":{"login":"digitalkaoz","id":293591,"avatar_url":"https://avatars.githubusercontent.com/u/293591?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalkaoz","html_url":"https://github.com/digitalkaoz","followers_url":"https://api.github.com/users/digitalkaoz/followers","following_url":"https://api.github.com/users/digitalkaoz/following{/other_user}","gists_url":"https://api.github.com/users/digitalkaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalkaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalkaoz/subscriptions","organizations_url":"https://api.github.com/users/digitalkaoz/orgs","repos_url":"https://api.github.com/users/digitalkaoz/repos","events_url":"https://api.github.com/users/digitalkaoz/events{/privacy}","received_events_url":"https://api.github.com/users/digitalkaoz/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T08:29:32Z","updated_at":"2015-03-26T08:29:32Z","body":"Hey,\r\n\r\nexactly as i wrote ;) \r\n\r\n```php\r\n$app = new Application();\r\n\r\n$app['debug'] = true;\r\n$app['mysq-password'] = 's3cr3t';\r\n```\r\n\r\ni use https://github.com/ivoba/dotenv-service-provider for injecting env vars into the pimple container.\r\n\r\nthen you can reference these variables in you config files:\r\n\r\n```yaml\r\ndebug: %debug%\r\nmysql:\r\n    password: %mysql-password%\r\n```\r\n\r\n"}}