{"action":"created","comment":{"url":"https://api.github.com/repos/commerceguys/commerce/pulls/comments/35353194","id":35353194,"diff_hunk":"@@ -0,0 +1,73 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Contains \\Drupal\\commerce_product\\ProductVariationManager.\n+ */\n+\n+namespace Drupal\\commerce_product;\n+\n+use Drupal\\commerce_product\\Entity\\Product;\n+use Drupal\\commerce_product\\Event\\AvailableVariationsEvent;\n+use Drupal\\commerce_product\\Event\\ProductEvents;\n+use Drupal\\Core\\Entity\\EntityManagerInterface;\n+use Symfony\\Component\\EventDispatcher\\EventDispatcher;\n+\n+class ProductVariationManager implements ProductVariationManagerInterface {\n+\n+  /**\n+   * The variation storage.\n+   *\n+   * @var \\Drupal\\Core\\Entity\\EntityStorageInterface\n+   */\n+  protected $variationStorage;\n+\n+  /**\n+   * The event dispatcher.\n+   *\n+   * @var \\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface\n+   */\n+  protected $eventDispatcher;\n+\n+","path":"modules/product/src/ProductVariationManager.php","position":32,"original_position":32,"commit_id":"dd05b7478feb6b4f44bab54c2d87657f9357470c","original_commit_id":"dd05b7478feb6b4f44bab54c2d87657f9357470c","user":{"login":"bojanz","id":330162,"avatar_url":"https://avatars.githubusercontent.com/u/330162?v=3","gravatar_id":"","url":"https://api.github.com/users/bojanz","html_url":"https://github.com/bojanz","followers_url":"https://api.github.com/users/bojanz/followers","following_url":"https://api.github.com/users/bojanz/following{/other_user}","gists_url":"https://api.github.com/users/bojanz/gists{/gist_id}","starred_url":"https://api.github.com/users/bojanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojanz/subscriptions","organizations_url":"https://api.github.com/users/bojanz/orgs","repos_url":"https://api.github.com/users/bojanz/repos","events_url":"https://api.github.com/users/bojanz/events{/privacy}","received_events_url":"https://api.github.com/users/bojanz/received_events","type":"User","site_admin":false},"body":"Accidental double newline.","created_at":"2015-07-23T18:15:28Z","updated_at":"2015-07-23T18:15:28Z","html_url":"https://github.com/commerceguys/commerce/pull/224#discussion_r35353194","pull_request_url":"https://api.github.com/repos/commerceguys/commerce/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/comments/35353194"},"html":{"href":"https://github.com/commerceguys/commerce/pull/224#discussion_r35353194"},"pull_request":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/commerceguys/commerce/pulls/224","id":40701204,"html_url":"https://github.com/commerceguys/commerce/pull/224","diff_url":"https://github.com/commerceguys/commerce/pull/224.diff","patch_url":"https://github.com/commerceguys/commerce/pull/224.patch","issue_url":"https://api.github.com/repos/commerceguys/commerce/issues/224","number":224,"state":"open","locked":false,"title":"Issue #2511252 by cbanman: Create a service for getting enabled produ…","user":{"login":"crbanman","id":6598426,"avatar_url":"https://avatars.githubusercontent.com/u/6598426?v=3","gravatar_id":"","url":"https://api.github.com/users/crbanman","html_url":"https://github.com/crbanman","followers_url":"https://api.github.com/users/crbanman/followers","following_url":"https://api.github.com/users/crbanman/following{/other_user}","gists_url":"https://api.github.com/users/crbanman/gists{/gist_id}","starred_url":"https://api.github.com/users/crbanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crbanman/subscriptions","organizations_url":"https://api.github.com/users/crbanman/orgs","repos_url":"https://api.github.com/users/crbanman/repos","events_url":"https://api.github.com/users/crbanman/events{/privacy}","received_events_url":"https://api.github.com/users/crbanman/received_events","type":"User","site_admin":false},"body":"…ct variations","created_at":"2015-07-23T18:13:40Z","updated_at":"2015-07-23T18:15:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16f21f9c58f66b4dfb711f4a75b841a7a72e4115","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/commerceguys/commerce/pulls/224/commits","review_comments_url":"https://api.github.com/repos/commerceguys/commerce/pulls/224/comments","review_comment_url":"https://api.github.com/repos/commerceguys/commerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commerceguys/commerce/issues/224/comments","statuses_url":"https://api.github.com/repos/commerceguys/commerce/statuses/dd05b7478feb6b4f44bab54c2d87657f9357470c","head":{"label":"crbanman:8.x-2.x","ref":"8.x-2.x","sha":"dd05b7478feb6b4f44bab54c2d87657f9357470c","user":{"login":"crbanman","id":6598426,"avatar_url":"https://avatars.githubusercontent.com/u/6598426?v=3","gravatar_id":"","url":"https://api.github.com/users/crbanman","html_url":"https://github.com/crbanman","followers_url":"https://api.github.com/users/crbanman/followers","following_url":"https://api.github.com/users/crbanman/following{/other_user}","gists_url":"https://api.github.com/users/crbanman/gists{/gist_id}","starred_url":"https://api.github.com/users/crbanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crbanman/subscriptions","organizations_url":"https://api.github.com/users/crbanman/orgs","repos_url":"https://api.github.com/users/crbanman/repos","events_url":"https://api.github.com/users/crbanman/events{/privacy}","received_events_url":"https://api.github.com/users/crbanman/received_events","type":"User","site_admin":false},"repo":{"id":39582976,"name":"commerce","full_name":"crbanman/commerce","owner":{"login":"crbanman","id":6598426,"avatar_url":"https://avatars.githubusercontent.com/u/6598426?v=3","gravatar_id":"","url":"https://api.github.com/users/crbanman","html_url":"https://github.com/crbanman","followers_url":"https://api.github.com/users/crbanman/followers","following_url":"https://api.github.com/users/crbanman/following{/other_user}","gists_url":"https://api.github.com/users/crbanman/gists{/gist_id}","starred_url":"https://api.github.com/users/crbanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crbanman/subscriptions","organizations_url":"https://api.github.com/users/crbanman/orgs","repos_url":"https://api.github.com/users/crbanman/repos","events_url":"https://api.github.com/users/crbanman/events{/privacy}","received_events_url":"https://api.github.com/users/crbanman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crbanman/commerce","description":"Drupal Commerce 8.x-2.x development","fork":true,"url":"https://api.github.com/repos/crbanman/commerce","forks_url":"https://api.github.com/repos/crbanman/commerce/forks","keys_url":"https://api.github.com/repos/crbanman/commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crbanman/commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crbanman/commerce/teams","hooks_url":"https://api.github.com/repos/crbanman/commerce/hooks","issue_events_url":"https://api.github.com/repos/crbanman/commerce/issues/events{/number}","events_url":"https://api.github.com/repos/crbanman/commerce/events","assignees_url":"https://api.github.com/repos/crbanman/commerce/assignees{/user}","branches_url":"https://api.github.com/repos/crbanman/commerce/branches{/branch}","tags_url":"https://api.github.com/repos/crbanman/commerce/tags","blobs_url":"https://api.github.com/repos/crbanman/commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crbanman/commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crbanman/commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/crbanman/commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crbanman/commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/crbanman/commerce/languages","stargazers_url":"https://api.github.com/repos/crbanman/commerce/stargazers","contributors_url":"https://api.github.com/repos/crbanman/commerce/contributors","subscribers_url":"https://api.github.com/repos/crbanman/commerce/subscribers","subscription_url":"https://api.github.com/repos/crbanman/commerce/subscription","commits_url":"https://api.github.com/repos/crbanman/commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/crbanman/commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/crbanman/commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/crbanman/commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/crbanman/commerce/contents/{+path}","compare_url":"https://api.github.com/repos/crbanman/commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crbanman/commerce/merges","archive_url":"https://api.github.com/repos/crbanman/commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crbanman/commerce/downloads","issues_url":"https://api.github.com/repos/crbanman/commerce/issues{/number}","pulls_url":"https://api.github.com/repos/crbanman/commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/crbanman/commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/crbanman/commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crbanman/commerce/labels{/name}","releases_url":"https://api.github.com/repos/crbanman/commerce/releases{/id}","created_at":"2015-07-23T18:04:44Z","updated_at":"2015-07-23T18:04:44Z","pushed_at":"2015-07-23T18:08:57Z","git_url":"git://github.com/crbanman/commerce.git","ssh_url":"git@github.com:crbanman/commerce.git","clone_url":"https://github.com/crbanman/commerce.git","svn_url":"https://github.com/crbanman/commerce","homepage":null,"size":2942,"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":"8.x-2.x"}},"base":{"label":"commerceguys:8.x-2.x","ref":"8.x-2.x","sha":"f64af48523918cd25d373a18bb89ed79523178d2","user":{"login":"commerceguys","id":183174,"avatar_url":"https://avatars.githubusercontent.com/u/183174?v=3","gravatar_id":"","url":"https://api.github.com/users/commerceguys","html_url":"https://github.com/commerceguys","followers_url":"https://api.github.com/users/commerceguys/followers","following_url":"https://api.github.com/users/commerceguys/following{/other_user}","gists_url":"https://api.github.com/users/commerceguys/gists{/gist_id}","starred_url":"https://api.github.com/users/commerceguys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commerceguys/subscriptions","organizations_url":"https://api.github.com/users/commerceguys/orgs","repos_url":"https://api.github.com/users/commerceguys/repos","events_url":"https://api.github.com/users/commerceguys/events{/privacy}","received_events_url":"https://api.github.com/users/commerceguys/received_events","type":"Organization","site_admin":false},"repo":{"id":21392057,"name":"commerce","full_name":"commerceguys/commerce","owner":{"login":"commerceguys","id":183174,"avatar_url":"https://avatars.githubusercontent.com/u/183174?v=3","gravatar_id":"","url":"https://api.github.com/users/commerceguys","html_url":"https://github.com/commerceguys","followers_url":"https://api.github.com/users/commerceguys/followers","following_url":"https://api.github.com/users/commerceguys/following{/other_user}","gists_url":"https://api.github.com/users/commerceguys/gists{/gist_id}","starred_url":"https://api.github.com/users/commerceguys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commerceguys/subscriptions","organizations_url":"https://api.github.com/users/commerceguys/orgs","repos_url":"https://api.github.com/users/commerceguys/repos","events_url":"https://api.github.com/users/commerceguys/events{/privacy}","received_events_url":"https://api.github.com/users/commerceguys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/commerceguys/commerce","description":"Drupal Commerce 8.x-2.x development","fork":false,"url":"https://api.github.com/repos/commerceguys/commerce","forks_url":"https://api.github.com/repos/commerceguys/commerce/forks","keys_url":"https://api.github.com/repos/commerceguys/commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commerceguys/commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commerceguys/commerce/teams","hooks_url":"https://api.github.com/repos/commerceguys/commerce/hooks","issue_events_url":"https://api.github.com/repos/commerceguys/commerce/issues/events{/number}","events_url":"https://api.github.com/repos/commerceguys/commerce/events","assignees_url":"https://api.github.com/repos/commerceguys/commerce/assignees{/user}","branches_url":"https://api.github.com/repos/commerceguys/commerce/branches{/branch}","tags_url":"https://api.github.com/repos/commerceguys/commerce/tags","blobs_url":"https://api.github.com/repos/commerceguys/commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commerceguys/commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commerceguys/commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/commerceguys/commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commerceguys/commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/commerceguys/commerce/languages","stargazers_url":"https://api.github.com/repos/commerceguys/commerce/stargazers","contributors_url":"https://api.github.com/repos/commerceguys/commerce/contributors","subscribers_url":"https://api.github.com/repos/commerceguys/commerce/subscribers","subscription_url":"https://api.github.com/repos/commerceguys/commerce/subscription","commits_url":"https://api.github.com/repos/commerceguys/commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/commerceguys/commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/commerceguys/commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/commerceguys/commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/commerceguys/commerce/contents/{+path}","compare_url":"https://api.github.com/repos/commerceguys/commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commerceguys/commerce/merges","archive_url":"https://api.github.com/repos/commerceguys/commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commerceguys/commerce/downloads","issues_url":"https://api.github.com/repos/commerceguys/commerce/issues{/number}","pulls_url":"https://api.github.com/repos/commerceguys/commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/commerceguys/commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/commerceguys/commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commerceguys/commerce/labels{/name}","releases_url":"https://api.github.com/repos/commerceguys/commerce/releases{/id}","created_at":"2014-07-01T15:05:51Z","updated_at":"2015-07-20T09:43:04Z","pushed_at":"2015-07-23T18:13:40Z","git_url":"git://github.com/commerceguys/commerce.git","ssh_url":"git@github.com:commerceguys/commerce.git","clone_url":"https://github.com/commerceguys/commerce.git","svn_url":"https://github.com/commerceguys/commerce","homepage":null,"size":2942,"stargazers_count":104,"watchers_count":104,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":7,"forks":52,"open_issues":7,"watchers":104,"default_branch":"8.x-2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/224"},"html":{"href":"https://github.com/commerceguys/commerce/pull/224"},"issue":{"href":"https://api.github.com/repos/commerceguys/commerce/issues/224"},"comments":{"href":"https://api.github.com/repos/commerceguys/commerce/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commerceguys/commerce/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/commerceguys/commerce/statuses/dd05b7478feb6b4f44bab54c2d87657f9357470c"}}}}