{"action":"closed","issue":{"url":"https://api.github.com/repos/titon/framework/issues/78","labels_url":"https://api.github.com/repos/titon/framework/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/titon/framework/issues/78/comments","events_url":"https://api.github.com/repos/titon/framework/issues/78/events","html_url":"https://github.com/titon/framework/issues/78","id":61684790,"number":78,"title":"Refactor Environment","user":{"login":"milesj","id":143744,"avatar_url":"https://avatars.githubusercontent.com/u/143744?v=3","gravatar_id":"","url":"https://api.github.com/users/milesj","html_url":"https://github.com/milesj","followers_url":"https://api.github.com/users/milesj/followers","following_url":"https://api.github.com/users/milesj/following{/other_user}","gists_url":"https://api.github.com/users/milesj/gists{/gist_id}","starred_url":"https://api.github.com/users/milesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesj/subscriptions","organizations_url":"https://api.github.com/users/milesj/orgs","repos_url":"https://api.github.com/users/milesj/repos","events_url":"https://api.github.com/users/milesj/events{/privacy}","received_events_url":"https://api.github.com/users/milesj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/titon/framework/labels/Beta","name":"Beta","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"milesj","id":143744,"avatar_url":"https://avatars.githubusercontent.com/u/143744?v=3","gravatar_id":"","url":"https://api.github.com/users/milesj","html_url":"https://github.com/milesj","followers_url":"https://api.github.com/users/milesj/followers","following_url":"https://api.github.com/users/milesj/following{/other_user}","gists_url":"https://api.github.com/users/milesj/gists{/gist_id}","starred_url":"https://api.github.com/users/milesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesj/subscriptions","organizations_url":"https://api.github.com/users/milesj/orgs","repos_url":"https://api.github.com/users/milesj/repos","events_url":"https://api.github.com/users/milesj/events{/privacy}","received_events_url":"https://api.github.com/users/milesj/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/titon/framework/milestones/2","html_url":"https://github.com/titon/framework/milestones/Beta%20Release","labels_url":"https://api.github.com/repos/titon/framework/milestones/2/labels","id":919406,"number":2,"title":"Beta Release","description":"Will include the following new packages.\r\n\r\n* DB\r\n* Context\r\n* Console\r\n* G11n\r\n* Kernel\r\n* Model\r\n* MVC","creator":{"login":"milesj","id":143744,"avatar_url":"https://avatars.githubusercontent.com/u/143744?v=3","gravatar_id":"","url":"https://api.github.com/users/milesj","html_url":"https://github.com/milesj","followers_url":"https://api.github.com/users/milesj/followers","following_url":"https://api.github.com/users/milesj/following{/other_user}","gists_url":"https://api.github.com/users/milesj/gists{/gist_id}","starred_url":"https://api.github.com/users/milesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesj/subscriptions","organizations_url":"https://api.github.com/users/milesj/orgs","repos_url":"https://api.github.com/users/milesj/repos","events_url":"https://api.github.com/users/milesj/events{/privacy}","received_events_url":"https://api.github.com/users/milesj/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":16,"state":"open","created_at":"2015-01-02T05:58:31Z","updated_at":"2015-03-30T18:27:05Z","due_on":"2015-07-01T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-03-14T19:41:26Z","updated_at":"2015-03-30T18:27:05Z","closed_at":"2015-03-30T18:27:05Z","body":"Our current environment system is pretty sub-par or just convoluted. We should really rewrite it using a \"dotenv\" approach -- which it currently does but not efficiently enough. A good reference: https://github.com/vlucas/phpdotenv\r\n\r\nTasks\r\n* [x] Remove `Host` and fallback stuff\r\n* [x] Remove `Bootstrapper`s\r\n* [x] Remove hostname matching\r\n* [x] Require no nginx/apache env vars\r\n* [x] Add a `.env` finder and parser\r\n* [x] Must be immutable\r\n* [x] Should also use `putenv()`\r\n\r\nPossible\r\n* [ ] Rename package to `Env`?\r\n* [x] Remove events?"}}