{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/55684020","id":55684020,"diff_hunk":"@@ -136,6 +136,10 @@ class User extends Component\n      * @var string the session variable name used to store the value of [[returnUrl]].\n      */\n     public $returnUrlParam = '__returnUrl';\n+    /**\n+     * @var array MIME types for which this component should redirect to the loginUrl.\n+     */\n+    public $acceptableRedirectTypes = ['text/html', 'application/xhtml+xml'];","path":"framework/web/User.php","position":7,"original_position":7,"commit_id":"768da298f776625d5202b8b12cbb75bbfaca7afb","original_commit_id":"768da298f776625d5202b8b12cbb75bbfaca7afb","user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"body":"need `@since` annotation.","created_at":"2016-03-10T14:14:21Z","updated_at":"2016-03-10T14:14:21Z","html_url":"https://github.com/yiisoft/yii2/pull/10962#discussion_r55684020","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10962","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/55684020"},"html":{"href":"https://github.com/yiisoft/yii2/pull/10962#discussion_r55684020"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10962"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/10962","id":60654022,"html_url":"https://github.com/yiisoft/yii2/pull/10962","diff_url":"https://github.com/yiisoft/yii2/pull/10962.diff","patch_url":"https://github.com/yiisoft/yii2/pull/10962.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10962","number":10962,"state":"open","locked":false,"title":"Added optional `$checkHeader` param to loginRequired for checking the…","user":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"body":"… Accept header; defaults to `true`.","created_at":"2016-02-25T10:12:24Z","updated_at":"2016-03-10T14:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edb712a21764a48acaa86302fcd26a7065662f78","assignee":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/16","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.8","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/16/labels","id":1242959,"number":16,"title":"2.0.8","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":132,"closed_issues":64,"state":"open","created_at":"2015-08-05T22:18:21Z","updated_at":"2016-03-10T14:11:48Z","due_on":"2016-03-19T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10962/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10962/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10962/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/768da298f776625d5202b8b12cbb75bbfaca7afb","head":{"label":"SamMousa:enh-10937-user-component-accept-header","ref":"enh-10937-user-component-accept-header","sha":"768da298f776625d5202b8b12cbb75bbfaca7afb","user":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"repo":{"id":31261382,"name":"yii2","full_name":"SamMousa/yii2","owner":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SamMousa/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/SamMousa/yii2","forks_url":"https://api.github.com/repos/SamMousa/yii2/forks","keys_url":"https://api.github.com/repos/SamMousa/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SamMousa/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SamMousa/yii2/teams","hooks_url":"https://api.github.com/repos/SamMousa/yii2/hooks","issue_events_url":"https://api.github.com/repos/SamMousa/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/SamMousa/yii2/events","assignees_url":"https://api.github.com/repos/SamMousa/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/SamMousa/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/SamMousa/yii2/tags","blobs_url":"https://api.github.com/repos/SamMousa/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SamMousa/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SamMousa/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SamMousa/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SamMousa/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/SamMousa/yii2/languages","stargazers_url":"https://api.github.com/repos/SamMousa/yii2/stargazers","contributors_url":"https://api.github.com/repos/SamMousa/yii2/contributors","subscribers_url":"https://api.github.com/repos/SamMousa/yii2/subscribers","subscription_url":"https://api.github.com/repos/SamMousa/yii2/subscription","commits_url":"https://api.github.com/repos/SamMousa/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SamMousa/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SamMousa/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SamMousa/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SamMousa/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/SamMousa/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SamMousa/yii2/merges","archive_url":"https://api.github.com/repos/SamMousa/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SamMousa/yii2/downloads","issues_url":"https://api.github.com/repos/SamMousa/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/SamMousa/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/SamMousa/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/SamMousa/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SamMousa/yii2/labels{/name}","releases_url":"https://api.github.com/repos/SamMousa/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/SamMousa/yii2/deployments","created_at":"2015-02-24T13:32:17Z","updated_at":"2016-02-03T12:45:17Z","pushed_at":"2016-03-10T10:49:19Z","git_url":"git://github.com/SamMousa/yii2.git","ssh_url":"git@github.com:SamMousa/yii2.git","clone_url":"https://github.com/SamMousa/yii2.git","svn_url":"https://github.com/SamMousa/yii2","homepage":"http://www.yiiframework.com","size":39569,"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":"yiisoft:master","ref":"master","sha":"6066b63c6ed95543da2d195004a8675836c96f8e","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/yiisoft/yii2/deployments","created_at":"2012-02-13T15:32:36Z","updated_at":"2016-03-10T12:17:07Z","pushed_at":"2016-03-10T14:07:43Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":47983,"stargazers_count":7676,"watchers_count":7676,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4499,"mirror_url":null,"open_issues_count":1022,"forks":4499,"open_issues":1022,"watchers":7676,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10962"},"html":{"href":"https://github.com/yiisoft/yii2/pull/10962"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/10962"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/10962/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10962/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10962/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/768da298f776625d5202b8b12cbb75bbfaca7afb"}}}}