{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/48026500","id":48026500,"diff_hunk":"@@ -0,0 +1,39 @@\n+<?php\n+\n+namespace Sylius\\Component\\Product\\Factory;\n+\n+use Sylius\\Component\\Translation\\Provider\\LocaleProviderInterface;\n+use Sylius\\Component\\Resource\\Factory\\FactoryInterface;\n+use Sylius\\Component\\Translation\\Factory\\TranslatableFactory;\n+\n+class ProductFactory extends TranslatableFactory implements FactoryInterface\n+{\n+    /**\n+     * @var FactoryInterface\n+     */\n+    private $variantFactory;\n+\n+    /**\n+     * @param FactoryInterface $variantFactory\n+     * @param string $className\n+     */\n+    public function __construct(\n+        FactoryInterface $translatableResourceFactory,\n+        LocaleProviderInterface $localeProvider,\n+        FactoryInterface $variantFactory,\n+        $className\n+    ) {\n+        $this->variantFactory = $variantFactory;\n+        parent::__construct($translatableResourceFactory, $localeProvider);","path":"src/Sylius/Component/Product/Factory/ProductFactory.php","position":27,"original_position":27,"commit_id":"e79b3c89dfcab1830cd780a70766c06611b8651d","original_commit_id":"e79b3c89dfcab1830cd780a70766c06611b8651d","user":{"login":"michalmarcinkowski","id":7572437,"avatar_url":"https://avatars.githubusercontent.com/u/7572437?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmarcinkowski","html_url":"https://github.com/michalmarcinkowski","followers_url":"https://api.github.com/users/michalmarcinkowski/followers","following_url":"https://api.github.com/users/michalmarcinkowski/following{/other_user}","gists_url":"https://api.github.com/users/michalmarcinkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmarcinkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmarcinkowski/subscriptions","organizations_url":"https://api.github.com/users/michalmarcinkowski/orgs","repos_url":"https://api.github.com/users/michalmarcinkowski/repos","events_url":"https://api.github.com/users/michalmarcinkowski/events{/privacy}","received_events_url":"https://api.github.com/users/michalmarcinkowski/received_events","type":"User","site_admin":false},"body":"`parent` should be first call in constructor.","created_at":"2015-12-18T13:56:40Z","updated_at":"2015-12-18T13:56:40Z","html_url":"https://github.com/Sylius/Sylius/pull/3744#discussion_r48026500","pull_request_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3744","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/48026500"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3744#discussion_r48026500"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3744"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3744","id":54099329,"html_url":"https://github.com/Sylius/Sylius/pull/3744","diff_url":"https://github.com/Sylius/Sylius/pull/3744.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3744.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3744","number":3744,"state":"open","locked":false,"title":"[Product] ProductFactory with variant setting in createNew()","user":{"login":"TheMadeleine","id":13198869,"avatar_url":"https://avatars.githubusercontent.com/u/13198869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMadeleine","html_url":"https://github.com/TheMadeleine","followers_url":"https://api.github.com/users/TheMadeleine/followers","following_url":"https://api.github.com/users/TheMadeleine/following{/other_user}","gists_url":"https://api.github.com/users/TheMadeleine/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMadeleine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMadeleine/subscriptions","organizations_url":"https://api.github.com/users/TheMadeleine/orgs","repos_url":"https://api.github.com/users/TheMadeleine/repos","events_url":"https://api.github.com/users/TheMadeleine/events{/privacy}","received_events_url":"https://api.github.com/users/TheMadeleine/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?    | yes\r\n| Deprecations? | no\r\n| Fixed tickets | #480 \r\n| License       | MIT","created_at":"2015-12-18T12:54:35Z","updated_at":"2015-12-18T13:56:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3593e21990de95c7f033b51b0467cb963f1d7cb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3744/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3744/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3744/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/e79b3c89dfcab1830cd780a70766c06611b8651d","head":{"label":"TheMadeleine:product-variant-constructor","ref":"product-variant-constructor","sha":"e79b3c89dfcab1830cd780a70766c06611b8651d","user":{"login":"TheMadeleine","id":13198869,"avatar_url":"https://avatars.githubusercontent.com/u/13198869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMadeleine","html_url":"https://github.com/TheMadeleine","followers_url":"https://api.github.com/users/TheMadeleine/followers","following_url":"https://api.github.com/users/TheMadeleine/following{/other_user}","gists_url":"https://api.github.com/users/TheMadeleine/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMadeleine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMadeleine/subscriptions","organizations_url":"https://api.github.com/users/TheMadeleine/orgs","repos_url":"https://api.github.com/users/TheMadeleine/repos","events_url":"https://api.github.com/users/TheMadeleine/events{/privacy}","received_events_url":"https://api.github.com/users/TheMadeleine/received_events","type":"User","site_admin":false},"repo":{"id":42736498,"name":"Sylius","full_name":"TheMadeleine/Sylius","owner":{"login":"TheMadeleine","id":13198869,"avatar_url":"https://avatars.githubusercontent.com/u/13198869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMadeleine","html_url":"https://github.com/TheMadeleine","followers_url":"https://api.github.com/users/TheMadeleine/followers","following_url":"https://api.github.com/users/TheMadeleine/following{/other_user}","gists_url":"https://api.github.com/users/TheMadeleine/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMadeleine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMadeleine/subscriptions","organizations_url":"https://api.github.com/users/TheMadeleine/orgs","repos_url":"https://api.github.com/users/TheMadeleine/repos","events_url":"https://api.github.com/users/TheMadeleine/events{/privacy}","received_events_url":"https://api.github.com/users/TheMadeleine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheMadeleine/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/TheMadeleine/Sylius","forks_url":"https://api.github.com/repos/TheMadeleine/Sylius/forks","keys_url":"https://api.github.com/repos/TheMadeleine/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheMadeleine/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheMadeleine/Sylius/teams","hooks_url":"https://api.github.com/repos/TheMadeleine/Sylius/hooks","issue_events_url":"https://api.github.com/repos/TheMadeleine/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/TheMadeleine/Sylius/events","assignees_url":"https://api.github.com/repos/TheMadeleine/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/TheMadeleine/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/TheMadeleine/Sylius/tags","blobs_url":"https://api.github.com/repos/TheMadeleine/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheMadeleine/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheMadeleine/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheMadeleine/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheMadeleine/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/TheMadeleine/Sylius/languages","stargazers_url":"https://api.github.com/repos/TheMadeleine/Sylius/stargazers","contributors_url":"https://api.github.com/repos/TheMadeleine/Sylius/contributors","subscribers_url":"https://api.github.com/repos/TheMadeleine/Sylius/subscribers","subscription_url":"https://api.github.com/repos/TheMadeleine/Sylius/subscription","commits_url":"https://api.github.com/repos/TheMadeleine/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheMadeleine/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheMadeleine/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheMadeleine/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheMadeleine/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/TheMadeleine/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheMadeleine/Sylius/merges","archive_url":"https://api.github.com/repos/TheMadeleine/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheMadeleine/Sylius/downloads","issues_url":"https://api.github.com/repos/TheMadeleine/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/TheMadeleine/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/TheMadeleine/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/TheMadeleine/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheMadeleine/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/TheMadeleine/Sylius/releases{/id}","created_at":"2015-09-18T17:21:15Z","updated_at":"2015-09-18T17:21:21Z","pushed_at":"2015-12-18T12:52:37Z","git_url":"git://github.com/TheMadeleine/Sylius.git","ssh_url":"git@github.com:TheMadeleine/Sylius.git","clone_url":"https://github.com/TheMadeleine/Sylius.git","svn_url":"https://github.com/TheMadeleine/Sylius","homepage":"Sylius.org","size":19851,"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":"7f8711f5ba44fce24e96c60ef11826b3a6161a5e","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-12-18T09:38:33Z","pushed_at":"2015-12-18T13:49:41Z","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":46444,"stargazers_count":2091,"watchers_count":2091,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":763,"mirror_url":null,"open_issues_count":462,"forks":763,"open_issues":462,"watchers":2091,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3744"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3744"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3744"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3744/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3744/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3744/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/e79b3c89dfcab1830cd780a70766c06611b8651d"}}}}