{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/comments/30879386","id":30879386,"diff_hunk":"@@ -0,0 +1,52 @@\n+<?php\n+\n+namespace Symfony\\Bridge\\PsrHttpMessage\\Factory;\n+\n+use Symfony\\Bridge\\PsrHttpMessage\\PsrHttpMessageFactoryInterface;\n+use Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+use Symfony\\Component\\HttpFoundation\\Response;\n+use Zend\\Diactoros\\ServerRequest as DiactorosRequest;\n+use Zend\\Diactoros\\Response as DiactorosResponse;\n+use Zend\\Diactoros\\UploadedFile as DiactorosUploadedFile;\n+\n+/**\n+ * Builds Psr\\HttpMessage instances using the Zend Diactoros implementation.\n+ *\n+ * @author Kévin Dunglas <dunglas@gmail.com>\n+ */\n+class DiactorosFactory implements PsrHttpMessageFactoryInterface\n+{\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function createRequest(Request $symfonyRequest)\n+    {\n+        return new DiactorosRequest(\n+\n+        );\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function createResponse(Response $symfonyResponse)\n+    {\n+        return new DiactorosResponse(\n+\n+        );\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function createUploadedFile(UploadedFile $symfonyUploadedFile)","path":"Factory/DiactorosFactory.php","position":44,"original_position":44,"commit_id":"77360d65b72bd78d127f2762b10881633747e182","original_commit_id":"77360d65b72bd78d127f2762b10881633747e182","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"body":"Don't you think it can be useful in many cases to convert from Symfony to PSR UploadedFile and vice versa.","created_at":"2015-05-22T09:02:20Z","updated_at":"2015-05-22T09:02:20Z","html_url":"https://github.com/symfony/psr-http-message-bridge/pull/1#discussion_r30879386","pull_request_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/comments/30879386"},"html":{"href":"https://github.com/symfony/psr-http-message-bridge/pull/1#discussion_r30879386"},"pull_request":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1","id":35973481,"html_url":"https://github.com/symfony/psr-http-message-bridge/pull/1","diff_url":"https://github.com/symfony/psr-http-message-bridge/pull/1.diff","patch_url":"https://github.com/symfony/psr-http-message-bridge/pull/1.patch","issue_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] Initial support","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"body":"- [x] Composer dependencies\r\n- [x] Interfaces\r\n- [x] Stub\r\n- [ ] HttpFoundationFactory implementation\r\n- [ ] DiactorosFactory implementation","created_at":"2015-05-21T20:22:37Z","updated_at":"2015-05-22T09:02:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31279976b6221721ecc0c4eb06d7f1faa00899bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1/commits","review_comments_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1/comments","review_comment_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/1/comments","statuses_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/statuses/77360d65b72bd78d127f2762b10881633747e182","head":{"label":"dunglas:wip","ref":"wip","sha":"77360d65b72bd78d127f2762b10881633747e182","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"repo":{"id":36032722,"name":"psr-http-message-bridge","full_name":"dunglas/psr-http-message-bridge","owner":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dunglas/psr-http-message-bridge","description":"","fork":true,"url":"https://api.github.com/repos/dunglas/psr-http-message-bridge","forks_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/forks","keys_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/teams","hooks_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/hooks","issue_events_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/events","assignees_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/tags","blobs_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/languages","stargazers_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/stargazers","contributors_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/contributors","subscribers_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/subscribers","subscription_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/subscription","commits_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/merges","archive_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/downloads","issues_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/labels{/name}","releases_url":"https://api.github.com/repos/dunglas/psr-http-message-bridge/releases{/id}","created_at":"2015-05-21T19:20:20Z","updated_at":"2015-05-21T19:12:24Z","pushed_at":"2015-05-22T07:47:06Z","git_url":"git://github.com/dunglas/psr-http-message-bridge.git","ssh_url":"git@github.com:dunglas/psr-http-message-bridge.git","clone_url":"https://github.com/dunglas/psr-http-message-bridge.git","svn_url":"https://github.com/dunglas/psr-http-message-bridge","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"01b110b6551f4f8e9995f1ae0925a866a4193385","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":36024079,"name":"psr-http-message-bridge","full_name":"symfony/psr-http-message-bridge","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/psr-http-message-bridge","description":"","fork":false,"url":"https://api.github.com/repos/symfony/psr-http-message-bridge","forks_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/forks","keys_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/teams","hooks_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/hooks","issue_events_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/events","assignees_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/tags","blobs_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/languages","stargazers_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/stargazers","contributors_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/contributors","subscribers_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/subscribers","subscription_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/subscription","commits_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/merges","archive_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/downloads","issues_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/labels{/name}","releases_url":"https://api.github.com/repos/symfony/psr-http-message-bridge/releases{/id}","created_at":"2015-05-21T16:24:05Z","updated_at":"2015-05-22T08:34:27Z","pushed_at":"2015-05-22T07:47:07Z","git_url":"git://github.com/symfony/psr-http-message-bridge.git","ssh_url":"git@github.com:symfony/psr-http-message-bridge.git","clone_url":"https://github.com/symfony/psr-http-message-bridge.git","svn_url":"https://github.com/symfony/psr-http-message-bridge","homepage":null,"size":0,"stargazers_count":30,"watchers_count":30,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1"},"html":{"href":"https://github.com/symfony/psr-http-message-bridge/pull/1"},"issue":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/1"},"comments":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/psr-http-message-bridge/statuses/77360d65b72bd78d127f2762b10881633747e182"}}}}