{"action":"opened","number":290,"pull_request":{"url":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290","id":34934304,"html_url":"https://github.com/thephpleague/oauth2-client/pull/290","diff_url":"https://github.com/thephpleague/oauth2-client/pull/290.diff","patch_url":"https://github.com/thephpleague/oauth2-client/pull/290.patch","issue_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/290","number":290,"state":"open","locked":false,"title":"Convert the grant factory to use singletons","user":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"body":"Using class names is too much like dependency injection and should be left to DI containers. Grant singletons offer more flexibility for custom grant constructions and reduce the number of objects created during the lifecycle of auth flow.\r\n\r\nRefs #284.","created_at":"2015-05-07T16:37:07Z","updated_at":"2015-05-07T16:37:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290/commits","review_comments_url":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290/comments","review_comment_url":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/290/comments","statuses_url":"https://api.github.com/repos/thephpleague/oauth2-client/statuses/a495a38552b5aec401b00238bf5ce711d32806e4","head":{"label":"shadowhand:feature/grant-factory-singletons","ref":"feature/grant-factory-singletons","sha":"a495a38552b5aec401b00238bf5ce711d32806e4","user":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"repo":{"id":31221950,"name":"oauth2-client","full_name":"shadowhand/oauth2-client","owner":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shadowhand/oauth2-client","description":"Making it simple to integrate your application with OAuth 2.0 identity providers.","fork":true,"url":"https://api.github.com/repos/shadowhand/oauth2-client","forks_url":"https://api.github.com/repos/shadowhand/oauth2-client/forks","keys_url":"https://api.github.com/repos/shadowhand/oauth2-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shadowhand/oauth2-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shadowhand/oauth2-client/teams","hooks_url":"https://api.github.com/repos/shadowhand/oauth2-client/hooks","issue_events_url":"https://api.github.com/repos/shadowhand/oauth2-client/issues/events{/number}","events_url":"https://api.github.com/repos/shadowhand/oauth2-client/events","assignees_url":"https://api.github.com/repos/shadowhand/oauth2-client/assignees{/user}","branches_url":"https://api.github.com/repos/shadowhand/oauth2-client/branches{/branch}","tags_url":"https://api.github.com/repos/shadowhand/oauth2-client/tags","blobs_url":"https://api.github.com/repos/shadowhand/oauth2-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shadowhand/oauth2-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shadowhand/oauth2-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/shadowhand/oauth2-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shadowhand/oauth2-client/statuses/{sha}","languages_url":"https://api.github.com/repos/shadowhand/oauth2-client/languages","stargazers_url":"https://api.github.com/repos/shadowhand/oauth2-client/stargazers","contributors_url":"https://api.github.com/repos/shadowhand/oauth2-client/contributors","subscribers_url":"https://api.github.com/repos/shadowhand/oauth2-client/subscribers","subscription_url":"https://api.github.com/repos/shadowhand/oauth2-client/subscription","commits_url":"https://api.github.com/repos/shadowhand/oauth2-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/shadowhand/oauth2-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/shadowhand/oauth2-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/shadowhand/oauth2-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/shadowhand/oauth2-client/contents/{+path}","compare_url":"https://api.github.com/repos/shadowhand/oauth2-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shadowhand/oauth2-client/merges","archive_url":"https://api.github.com/repos/shadowhand/oauth2-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shadowhand/oauth2-client/downloads","issues_url":"https://api.github.com/repos/shadowhand/oauth2-client/issues{/number}","pulls_url":"https://api.github.com/repos/shadowhand/oauth2-client/pulls{/number}","milestones_url":"https://api.github.com/repos/shadowhand/oauth2-client/milestones{/number}","notifications_url":"https://api.github.com/repos/shadowhand/oauth2-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shadowhand/oauth2-client/labels{/name}","releases_url":"https://api.github.com/repos/shadowhand/oauth2-client/releases{/id}","created_at":"2015-02-23T18:15:31Z","updated_at":"2015-05-02T03:25:36Z","pushed_at":"2015-05-07T16:36:43Z","git_url":"git://github.com/shadowhand/oauth2-client.git","ssh_url":"git@github.com:shadowhand/oauth2-client.git","clone_url":"https://github.com/shadowhand/oauth2-client.git","svn_url":"https://github.com/shadowhand/oauth2-client","homepage":"","size":710,"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":"thephpleague:1.0","ref":"1.0","sha":"92f3c605f4968ad607474457f4afecba1f897200","user":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"repo":{"id":7895524,"name":"oauth2-client","full_name":"thephpleague/oauth2-client","owner":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thephpleague/oauth2-client","description":"Making it simple to integrate your application with OAuth 2.0 identity providers.","fork":false,"url":"https://api.github.com/repos/thephpleague/oauth2-client","forks_url":"https://api.github.com/repos/thephpleague/oauth2-client/forks","keys_url":"https://api.github.com/repos/thephpleague/oauth2-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephpleague/oauth2-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephpleague/oauth2-client/teams","hooks_url":"https://api.github.com/repos/thephpleague/oauth2-client/hooks","issue_events_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/events{/number}","events_url":"https://api.github.com/repos/thephpleague/oauth2-client/events","assignees_url":"https://api.github.com/repos/thephpleague/oauth2-client/assignees{/user}","branches_url":"https://api.github.com/repos/thephpleague/oauth2-client/branches{/branch}","tags_url":"https://api.github.com/repos/thephpleague/oauth2-client/tags","blobs_url":"https://api.github.com/repos/thephpleague/oauth2-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephpleague/oauth2-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephpleague/oauth2-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephpleague/oauth2-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephpleague/oauth2-client/statuses/{sha}","languages_url":"https://api.github.com/repos/thephpleague/oauth2-client/languages","stargazers_url":"https://api.github.com/repos/thephpleague/oauth2-client/stargazers","contributors_url":"https://api.github.com/repos/thephpleague/oauth2-client/contributors","subscribers_url":"https://api.github.com/repos/thephpleague/oauth2-client/subscribers","subscription_url":"https://api.github.com/repos/thephpleague/oauth2-client/subscription","commits_url":"https://api.github.com/repos/thephpleague/oauth2-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephpleague/oauth2-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephpleague/oauth2-client/contents/{+path}","compare_url":"https://api.github.com/repos/thephpleague/oauth2-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephpleague/oauth2-client/merges","archive_url":"https://api.github.com/repos/thephpleague/oauth2-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephpleague/oauth2-client/downloads","issues_url":"https://api.github.com/repos/thephpleague/oauth2-client/issues{/number}","pulls_url":"https://api.github.com/repos/thephpleague/oauth2-client/pulls{/number}","milestones_url":"https://api.github.com/repos/thephpleague/oauth2-client/milestones{/number}","notifications_url":"https://api.github.com/repos/thephpleague/oauth2-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephpleague/oauth2-client/labels{/name}","releases_url":"https://api.github.com/repos/thephpleague/oauth2-client/releases{/id}","created_at":"2013-01-29T16:01:42Z","updated_at":"2015-05-07T15:31:16Z","pushed_at":"2015-05-07T15:22:44Z","git_url":"git://github.com/thephpleague/oauth2-client.git","ssh_url":"git@github.com:thephpleague/oauth2-client.git","clone_url":"https://github.com/thephpleague/oauth2-client.git","svn_url":"https://github.com/thephpleague/oauth2-client","homepage":"","size":2888,"stargazers_count":755,"watchers_count":755,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":236,"mirror_url":null,"open_issues_count":7,"forks":236,"open_issues":7,"watchers":755,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290"},"html":{"href":"https://github.com/thephpleague/oauth2-client/pull/290"},"issue":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/issues/290"},"comments":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/issues/290/comments"},"review_comments":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290/comments"},"review_comment":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/pulls/290/commits"},"statuses":{"href":"https://api.github.com/repos/thephpleague/oauth2-client/statuses/a495a38552b5aec401b00238bf5ce711d32806e4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":36,"changed_files":3}}