{"action":"created","comment":{"url":"https://api.github.com/repos/api-platform/core/pulls/comments/80624403","pull_request_review_id":1669371,"id":80624403,"diff_hunk":"@@ -488,9 +488,13 @@ private function getType(string $type, bool $isCollection, string $className = n\n      */\n     private function computeDoc(Documentation $documentation, \\ArrayObject $definitions, \\ArrayObject $paths) : array\n     {\n+        /** @var Symfony\\Component\\Routing\\RequestContext $requestContext */\n+        $requestContext = $this->urlGenerator->getContext();","path":"src/Swagger/Serializer/DocumentationNormalizer.php","position":5,"original_position":5,"commit_id":"49837e079ffa437f12adba3d275fd6d5e94f8ea9","original_commit_id":"49837e079ffa437f12adba3d275fd6d5e94f8ea9","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":"I'm afraid it will not work in CLI context (using the doc generation command).","created_at":"2016-09-27T05:59:55Z","updated_at":"2016-09-27T05:59:56Z","html_url":"https://github.com/api-platform/core/pull/765#discussion_r80624403","pull_request_url":"https://api.github.com/repos/api-platform/core/pulls/765","_links":{"self":{"href":"https://api.github.com/repos/api-platform/core/pulls/comments/80624403"},"html":{"href":"https://github.com/api-platform/core/pull/765#discussion_r80624403"},"pull_request":{"href":"https://api.github.com/repos/api-platform/core/pulls/765"}}},"pull_request":{"url":"https://api.github.com/repos/api-platform/core/pulls/765","id":86308871,"html_url":"https://github.com/api-platform/core/pull/765","diff_url":"https://github.com/api-platform/core/pull/765.diff","patch_url":"https://github.com/api-platform/core/pull/765.patch","issue_url":"https://api.github.com/repos/api-platform/core/issues/765","number":765,"state":"open","locked":false,"title":"WIP: Add \"host\" declaration to Swagger declaration","user":{"login":"dkarlovi","id":209225,"avatar_url":"https://avatars.githubusercontent.com/u/209225?v=3","gravatar_id":"","url":"https://api.github.com/users/dkarlovi","html_url":"https://github.com/dkarlovi","followers_url":"https://api.github.com/users/dkarlovi/followers","following_url":"https://api.github.com/users/dkarlovi/following{/other_user}","gists_url":"https://api.github.com/users/dkarlovi/gists{/gist_id}","starred_url":"https://api.github.com/users/dkarlovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkarlovi/subscriptions","organizations_url":"https://api.github.com/users/dkarlovi/orgs","repos_url":"https://api.github.com/users/dkarlovi/repos","events_url":"https://api.github.com/users/dkarlovi/events{/privacy}","received_events_url":"https://api.github.com/users/dkarlovi/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | no\r\n| Fixed tickets | #761 \r\n| License       | MIT\r\n| Doc PR        | N/A\r\n\r\n*Please update this template with something that matches your PR*\r\n\r\n","created_at":"2016-09-22T10:01:17Z","updated_at":"2016-09-27T05:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89543a713744c8960ffd95bf826634e3762e53c1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/core/pulls/765/commits","review_comments_url":"https://api.github.com/repos/api-platform/core/pulls/765/comments","review_comment_url":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/api-platform/core/issues/765/comments","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/49837e079ffa437f12adba3d275fd6d5e94f8ea9","head":{"label":"webburza:feature/swagger-host-declaration","ref":"feature/swagger-host-declaration","sha":"49837e079ffa437f12adba3d275fd6d5e94f8ea9","user":{"login":"webburza","id":17698921,"avatar_url":"https://avatars.githubusercontent.com/u/17698921?v=3","gravatar_id":"","url":"https://api.github.com/users/webburza","html_url":"https://github.com/webburza","followers_url":"https://api.github.com/users/webburza/followers","following_url":"https://api.github.com/users/webburza/following{/other_user}","gists_url":"https://api.github.com/users/webburza/gists{/gist_id}","starred_url":"https://api.github.com/users/webburza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webburza/subscriptions","organizations_url":"https://api.github.com/users/webburza/orgs","repos_url":"https://api.github.com/users/webburza/repos","events_url":"https://api.github.com/users/webburza/events{/privacy}","received_events_url":"https://api.github.com/users/webburza/received_events","type":"Organization","site_admin":false},"repo":{"id":68817581,"name":"core","full_name":"webburza/core","owner":{"login":"webburza","id":17698921,"avatar_url":"https://avatars.githubusercontent.com/u/17698921?v=3","gravatar_id":"","url":"https://api.github.com/users/webburza","html_url":"https://github.com/webburza","followers_url":"https://api.github.com/users/webburza/followers","following_url":"https://api.github.com/users/webburza/following{/other_user}","gists_url":"https://api.github.com/users/webburza/gists{/gist_id}","starred_url":"https://api.github.com/users/webburza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webburza/subscriptions","organizations_url":"https://api.github.com/users/webburza/orgs","repos_url":"https://api.github.com/users/webburza/repos","events_url":"https://api.github.com/users/webburza/events{/privacy}","received_events_url":"https://api.github.com/users/webburza/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webburza/core","description":"The Hypermedia REST API component of API Platform: JSON-LD and Hydra support, works with Symfony too","fork":true,"url":"https://api.github.com/repos/webburza/core","forks_url":"https://api.github.com/repos/webburza/core/forks","keys_url":"https://api.github.com/repos/webburza/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webburza/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webburza/core/teams","hooks_url":"https://api.github.com/repos/webburza/core/hooks","issue_events_url":"https://api.github.com/repos/webburza/core/issues/events{/number}","events_url":"https://api.github.com/repos/webburza/core/events","assignees_url":"https://api.github.com/repos/webburza/core/assignees{/user}","branches_url":"https://api.github.com/repos/webburza/core/branches{/branch}","tags_url":"https://api.github.com/repos/webburza/core/tags","blobs_url":"https://api.github.com/repos/webburza/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webburza/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webburza/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/webburza/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webburza/core/statuses/{sha}","languages_url":"https://api.github.com/repos/webburza/core/languages","stargazers_url":"https://api.github.com/repos/webburza/core/stargazers","contributors_url":"https://api.github.com/repos/webburza/core/contributors","subscribers_url":"https://api.github.com/repos/webburza/core/subscribers","subscription_url":"https://api.github.com/repos/webburza/core/subscription","commits_url":"https://api.github.com/repos/webburza/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/webburza/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/webburza/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/webburza/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/webburza/core/contents/{+path}","compare_url":"https://api.github.com/repos/webburza/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webburza/core/merges","archive_url":"https://api.github.com/repos/webburza/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webburza/core/downloads","issues_url":"https://api.github.com/repos/webburza/core/issues{/number}","pulls_url":"https://api.github.com/repos/webburza/core/pulls{/number}","milestones_url":"https://api.github.com/repos/webburza/core/milestones{/number}","notifications_url":"https://api.github.com/repos/webburza/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webburza/core/labels{/name}","releases_url":"https://api.github.com/repos/webburza/core/releases{/id}","deployments_url":"https://api.github.com/repos/webburza/core/deployments","created_at":"2016-09-21T13:05:15Z","updated_at":"2016-09-21T13:05:17Z","pushed_at":"2016-09-22T09:57:49Z","git_url":"git://github.com/webburza/core.git","ssh_url":"git@github.com:webburza/core.git","clone_url":"https://github.com/webburza/core.git","svn_url":"https://github.com/webburza/core","homepage":"https://api-platform.com","size":3587,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"api-platform:master","ref":"master","sha":"2d252cfe1a188cc0d05c70a78d111b7e54c6d650","user":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars.githubusercontent.com/u/13420081?v=3","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":29501260,"name":"core","full_name":"api-platform/core","owner":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars.githubusercontent.com/u/13420081?v=3","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/api-platform/core","description":"The Hypermedia REST API component of API Platform: JSON-LD and Hydra support, works with Symfony too","fork":false,"url":"https://api.github.com/repos/api-platform/core","forks_url":"https://api.github.com/repos/api-platform/core/forks","keys_url":"https://api.github.com/repos/api-platform/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/api-platform/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/api-platform/core/teams","hooks_url":"https://api.github.com/repos/api-platform/core/hooks","issue_events_url":"https://api.github.com/repos/api-platform/core/issues/events{/number}","events_url":"https://api.github.com/repos/api-platform/core/events","assignees_url":"https://api.github.com/repos/api-platform/core/assignees{/user}","branches_url":"https://api.github.com/repos/api-platform/core/branches{/branch}","tags_url":"https://api.github.com/repos/api-platform/core/tags","blobs_url":"https://api.github.com/repos/api-platform/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/api-platform/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/api-platform/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/api-platform/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/{sha}","languages_url":"https://api.github.com/repos/api-platform/core/languages","stargazers_url":"https://api.github.com/repos/api-platform/core/stargazers","contributors_url":"https://api.github.com/repos/api-platform/core/contributors","subscribers_url":"https://api.github.com/repos/api-platform/core/subscribers","subscription_url":"https://api.github.com/repos/api-platform/core/subscription","commits_url":"https://api.github.com/repos/api-platform/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/api-platform/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/api-platform/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/api-platform/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/api-platform/core/contents/{+path}","compare_url":"https://api.github.com/repos/api-platform/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/api-platform/core/merges","archive_url":"https://api.github.com/repos/api-platform/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/api-platform/core/downloads","issues_url":"https://api.github.com/repos/api-platform/core/issues{/number}","pulls_url":"https://api.github.com/repos/api-platform/core/pulls{/number}","milestones_url":"https://api.github.com/repos/api-platform/core/milestones{/number}","notifications_url":"https://api.github.com/repos/api-platform/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/api-platform/core/labels{/name}","releases_url":"https://api.github.com/repos/api-platform/core/releases{/id}","deployments_url":"https://api.github.com/repos/api-platform/core/deployments","created_at":"2015-01-19T23:05:56Z","updated_at":"2016-09-20T09:30:39Z","pushed_at":"2016-09-26T14:42:16Z","git_url":"git://github.com/api-platform/core.git","ssh_url":"git@github.com:api-platform/core.git","clone_url":"https://github.com/api-platform/core.git","svn_url":"https://github.com/api-platform/core","homepage":"https://api-platform.com","size":4301,"stargazers_count":350,"watchers_count":350,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":56,"forks":96,"open_issues":56,"watchers":350,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/core/pulls/765"},"html":{"href":"https://github.com/api-platform/core/pull/765"},"issue":{"href":"https://api.github.com/repos/api-platform/core/issues/765"},"comments":{"href":"https://api.github.com/repos/api-platform/core/issues/765/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/core/pulls/765/comments"},"review_comment":{"href":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/api-platform/core/pulls/765/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/core/statuses/49837e079ffa437f12adba3d275fd6d5e94f8ea9"}}}}
{"actor":{"display_login":"dunglas"}}