{"action":"closed","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1500","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1500/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1500/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1500/events","html_url":"https://github.com/slimphp/Slim/issues/1500","id":107202729,"number":1500,"title":"Decouple object construction","user":{"login":"geggleto","id":4027602,"avatar_url":"https://avatars.githubusercontent.com/u/4027602?v=3","gravatar_id":"","url":"https://api.github.com/users/geggleto","html_url":"https://github.com/geggleto","followers_url":"https://api.github.com/users/geggleto/followers","following_url":"https://api.github.com/users/geggleto/following{/other_user}","gists_url":"https://api.github.com/users/geggleto/gists{/gist_id}","starred_url":"https://api.github.com/users/geggleto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geggleto/subscriptions","organizations_url":"https://api.github.com/users/geggleto/orgs","repos_url":"https://api.github.com/users/geggleto/repos","events_url":"https://api.github.com/users/geggleto/events{/privacy}","received_events_url":"https://api.github.com/users/geggleto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-18T13:29:41Z","updated_at":"2015-09-22T18:57:28Z","closed_at":"2015-09-22T18:57:28Z","body":"This can wait for 3.1.\r\n\r\nAfter reviewing the source code, I think we need to move some of the construction code around.\r\nThere are many classes that have static constructors ```createFromEnvironment```:\r\nUri,\r\nUploadedFile,\r\nRequest,\r\nHeaders,\r\n\r\nWe should have those refactored into the Environment Class turning it into a Factory."}}