{"action":"closed","number":3330,"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3330","id":45645286,"html_url":"https://github.com/Sylius/Sylius/pull/3330","diff_url":"https://github.com/Sylius/Sylius/pull/3330.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3330.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3330","number":3330,"state":"closed","locked":false,"title":"Add check to customer context","user":{"login":"gonzalovilaseca","id":4030438,"avatar_url":"https://avatars.githubusercontent.com/u/4030438?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalovilaseca","html_url":"https://github.com/gonzalovilaseca","followers_url":"https://api.github.com/users/gonzalovilaseca/followers","following_url":"https://api.github.com/users/gonzalovilaseca/following{/other_user}","gists_url":"https://api.github.com/users/gonzalovilaseca/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalovilaseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalovilaseca/subscriptions","organizations_url":"https://api.github.com/users/gonzalovilaseca/orgs","repos_url":"https://api.github.com/users/gonzalovilaseca/repos","events_url":"https://api.github.com/users/gonzalovilaseca/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalovilaseca/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | \r\n\r\nIn one part of our site we don't need sylius autentication, just basic http with a generic username and password (which by default uses a Symfony user), so the Customer context fails when calling `->getCustomer()`.\r\nAdding this check allows us to use basic http autentication.","created_at":"2015-09-22T10:02:32Z","updated_at":"2015-09-23T08:02:55Z","closed_at":"2015-09-23T08:02:54Z","merged_at":"2015-09-23T08:02:54Z","merge_commit_sha":"8c79763f842740df3752ecc496fc60075e8d361f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3330/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3330/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3330/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/413d3b3a88e6bed99c7651a8bf8c6c9fed0b158a","head":{"label":"gonzalovilaseca:patch-4","ref":"patch-4","sha":"413d3b3a88e6bed99c7651a8bf8c6c9fed0b158a","user":{"login":"gonzalovilaseca","id":4030438,"avatar_url":"https://avatars.githubusercontent.com/u/4030438?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalovilaseca","html_url":"https://github.com/gonzalovilaseca","followers_url":"https://api.github.com/users/gonzalovilaseca/followers","following_url":"https://api.github.com/users/gonzalovilaseca/following{/other_user}","gists_url":"https://api.github.com/users/gonzalovilaseca/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalovilaseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalovilaseca/subscriptions","organizations_url":"https://api.github.com/users/gonzalovilaseca/orgs","repos_url":"https://api.github.com/users/gonzalovilaseca/repos","events_url":"https://api.github.com/users/gonzalovilaseca/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalovilaseca/received_events","type":"User","site_admin":false},"repo":{"id":20324707,"name":"Sylius","full_name":"gonzalovilaseca/Sylius","owner":{"login":"gonzalovilaseca","id":4030438,"avatar_url":"https://avatars.githubusercontent.com/u/4030438?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalovilaseca","html_url":"https://github.com/gonzalovilaseca","followers_url":"https://api.github.com/users/gonzalovilaseca/followers","following_url":"https://api.github.com/users/gonzalovilaseca/following{/other_user}","gists_url":"https://api.github.com/users/gonzalovilaseca/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalovilaseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalovilaseca/subscriptions","organizations_url":"https://api.github.com/users/gonzalovilaseca/orgs","repos_url":"https://api.github.com/users/gonzalovilaseca/repos","events_url":"https://api.github.com/users/gonzalovilaseca/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalovilaseca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gonzalovilaseca/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/gonzalovilaseca/Sylius","forks_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/forks","keys_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/teams","hooks_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/hooks","issue_events_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/events","assignees_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/tags","blobs_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/languages","stargazers_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/stargazers","contributors_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/contributors","subscribers_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/subscribers","subscription_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/subscription","commits_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/merges","archive_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/downloads","issues_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/gonzalovilaseca/Sylius/releases{/id}","created_at":"2014-05-30T09:37:57Z","updated_at":"2014-06-24T10:09:53Z","pushed_at":"2015-09-22T21:01:40Z","git_url":"git://github.com/gonzalovilaseca/Sylius.git","ssh_url":"git@github.com:gonzalovilaseca/Sylius.git","clone_url":"https://github.com/gonzalovilaseca/Sylius.git","svn_url":"https://github.com/gonzalovilaseca/Sylius","homepage":"Sylius.org","size":18800,"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":"Sylius:master","ref":"master","sha":"370e26840ace9f0ea597dd667300cb6f9c56ea93","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2717549,"name":"Sylius","full_name":"Sylius/Sylius","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius","forks_url":"https://api.github.com/repos/Sylius/Sylius/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius/releases{/id}","created_at":"2011-11-05T22:05:52Z","updated_at":"2015-09-22T13:58:34Z","pushed_at":"2015-09-23T08:02:55Z","git_url":"git://github.com/Sylius/Sylius.git","ssh_url":"git@github.com:Sylius/Sylius.git","clone_url":"https://github.com/Sylius/Sylius.git","svn_url":"https://github.com/Sylius/Sylius","homepage":"Sylius.org","size":68853,"stargazers_count":1953,"watchers_count":1953,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":717,"mirror_url":null,"open_issues_count":533,"forks":717,"open_issues":533,"watchers":1953,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3330"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3330"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3330"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3330/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3330/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3330/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/413d3b3a88e6bed99c7651a8bf8c6c9fed0b158a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pjedrzejewski","id":614970,"avatar_url":"https://avatars.githubusercontent.com/u/614970?v=3","gravatar_id":"","url":"https://api.github.com/users/pjedrzejewski","html_url":"https://github.com/pjedrzejewski","followers_url":"https://api.github.com/users/pjedrzejewski/followers","following_url":"https://api.github.com/users/pjedrzejewski/following{/other_user}","gists_url":"https://api.github.com/users/pjedrzejewski/gists{/gist_id}","starred_url":"https://api.github.com/users/pjedrzejewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjedrzejewski/subscriptions","organizations_url":"https://api.github.com/users/pjedrzejewski/orgs","repos_url":"https://api.github.com/users/pjedrzejewski/repos","events_url":"https://api.github.com/users/pjedrzejewski/events{/privacy}","received_events_url":"https://api.github.com/users/pjedrzejewski/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"commits":1,"additions":2,"deletions":1,"changed_files":1}}