{"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1850","repository_url":"https://api.github.com/repos/slimphp/Slim","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1850/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1850/events","html_url":"https://github.com/slimphp/Slim/pull/1850","id":149837582,"number":1850,"title":"(Thoughts?) Feature - Allow users to Specify their own Http Classes Easily","user":{"login":"Raistlfiren","id":234712,"avatar_url":"https://avatars.githubusercontent.com/u/234712?v=3","gravatar_id":"","url":"https://api.github.com/users/Raistlfiren","html_url":"https://github.com/Raistlfiren","followers_url":"https://api.github.com/users/Raistlfiren/followers","following_url":"https://api.github.com/users/Raistlfiren/following{/other_user}","gists_url":"https://api.github.com/users/Raistlfiren/gists{/gist_id}","starred_url":"https://api.github.com/users/Raistlfiren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raistlfiren/subscriptions","organizations_url":"https://api.github.com/users/Raistlfiren/orgs","repos_url":"https://api.github.com/users/Raistlfiren/repos","events_url":"https://api.github.com/users/Raistlfiren/events{/privacy}","received_events_url":"https://api.github.com/users/Raistlfiren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T17:42:14Z","updated_at":"2016-04-20T17:45:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/1850","html_url":"https://github.com/slimphp/Slim/pull/1850","diff_url":"https://github.com/slimphp/Slim/pull/1850.diff","patch_url":"https://github.com/slimphp/Slim/pull/1850.patch"},"body":"The problem - Currently, you are limited to using Slims classes to parse requests for the Uri, Headers, Cookies, and UploadedFiles. https://github.com/slimphp/Slim/blob/3.x/Slim/Http/Request.php#L139\r\n\r\nSolution - Allow the user to specify the class they want to use in order to handle the request type in the settings file. For example, a user declares the setting => `'uploadedFileClass' => '<Their new UploadedFileClass>'`, then the users class will be used instead of the default. \r\n\r\nNow users can go about extending the UploadedFile class and adding methods that they want. \r\n\r\n**I did break all tests, just curious if anyone else wanted the same functionality**"},"comment":{"url":"https://api.github.com/repos/slimphp/Slim/issues/comments/212532014","html_url":"https://github.com/slimphp/Slim/pull/1850#issuecomment-212532014","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1850","id":212532014,"user":{"login":"JoeBengalen","id":11173689,"avatar_url":"https://avatars.githubusercontent.com/u/11173689?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeBengalen","html_url":"https://github.com/JoeBengalen","followers_url":"https://api.github.com/users/JoeBengalen/followers","following_url":"https://api.github.com/users/JoeBengalen/following{/other_user}","gists_url":"https://api.github.com/users/JoeBengalen/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeBengalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeBengalen/subscriptions","organizations_url":"https://api.github.com/users/JoeBengalen/orgs","repos_url":"https://api.github.com/users/JoeBengalen/repos","events_url":"https://api.github.com/users/JoeBengalen/events{/privacy}","received_events_url":"https://api.github.com/users/JoeBengalen/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T17:45:40Z","updated_at":"2016-04-20T17:45:40Z","body":"Slim is psr7 compliant, you can easily use a different http implementation. "}}