{"action":"created","comment":{"url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/comments/66200005","id":66200005,"diff_hunk":"@@ -0,0 +1,54 @@\n+<?php\n+\n+namespace SumoCoders\\FrameworkMultiUserBundle\\Command;\n+\n+use Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\n+use Symfony\\Component\\Console\\Input\\InputArgument;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+\n+class CreateUserCommand extends ContainerAwareCommand\n+{\n+    protected function configure()\n+    {\n+        $this\n+            ->setName('sumocoders:multiuser:create')\n+            ->setDescription('Create a user entity')\n+            ->addArgument(\n+                'username',\n+                InputArgument::REQUIRED,\n+                'The username of the user'\n+            )\n+            ->addArgument(\n+                'password',\n+                InputArgument::REQUIRED,\n+                'The password for the user'\n+            )\n+            ->addArgument(\n+                'displayName',\n+                InputArgument::REQUIRED,\n+                'The display name for the user'\n+            )\n+        ;\n+    }\n+\n+    protected function execute(InputInterface $input, OutputInterface $output)\n+    {\n+        $repository = $this->getContainer()->get('multi_user.user.repository');\n+\n+        $handler = new CreateUserHandler($repository);\n+\n+        $username = $input->getArgument('username');\n+        $password = $input->getArgument('password');\n+        $displayName = $input->getArgument('displayName');\n+\n+        $command = new CreateUser();\n+        $command->username = $username;\n+        $command->password = $password;\n+        $command->displayName = $displayName;","path":"Command/CreateUserCommand.php","position":48,"original_position":48,"commit_id":"3a01ddcaeb5d79b4246c0d12e4abc50e86502e1a","original_commit_id":"3a01ddcaeb5d79b4246c0d12e4abc50e86502e1a","user":{"login":"WouterSioen","id":1398405,"avatar_url":"https://avatars.githubusercontent.com/u/1398405?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterSioen","html_url":"https://github.com/WouterSioen","followers_url":"https://api.github.com/users/WouterSioen/followers","following_url":"https://api.github.com/users/WouterSioen/following{/other_user}","gists_url":"https://api.github.com/users/WouterSioen/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterSioen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterSioen/subscriptions","organizations_url":"https://api.github.com/users/WouterSioen/orgs","repos_url":"https://api.github.com/users/WouterSioen/repos","events_url":"https://api.github.com/users/WouterSioen/events{/privacy}","received_events_url":"https://api.github.com/users/WouterSioen/received_events","type":"User","site_admin":false},"body":"waarom niet als verplichte constructor argumenten meegeven? Je zal die dingen toch sowieso _altijd_ nodig hebben om een user aan te maken.","created_at":"2016-06-08T06:45:21Z","updated_at":"2016-06-08T06:45:21Z","html_url":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10#discussion_r66200005","pull_request_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/comments/66200005"},"html":{"href":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10#discussion_r66200005"},"pull_request":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10","id":72860062,"html_url":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10","diff_url":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10.diff","patch_url":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10.patch","issue_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/10","number":10,"state":"open","locked":false,"title":"51 add a cli tool to easily add manage users","user":{"login":"bjorvack","id":3007416,"avatar_url":"https://avatars.githubusercontent.com/u/3007416?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorvack","html_url":"https://github.com/bjorvack","followers_url":"https://api.github.com/users/bjorvack/followers","following_url":"https://api.github.com/users/bjorvack/following{/other_user}","gists_url":"https://api.github.com/users/bjorvack/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorvack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorvack/subscriptions","organizations_url":"https://api.github.com/users/bjorvack/orgs","repos_url":"https://api.github.com/users/bjorvack/repos","events_url":"https://api.github.com/users/bjorvack/events{/privacy}","received_events_url":"https://api.github.com/users/bjorvack/received_events","type":"User","site_admin":false},"body":"closes #6","created_at":"2016-06-07T11:42:44Z","updated_at":"2016-06-08T06:45:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62ff847f72367643d75b39082e04525dea7c2d4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10/commits","review_comments_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10/comments","review_comment_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/10/comments","statuses_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/statuses/3a01ddcaeb5d79b4246c0d12e4abc50e86502e1a","head":{"label":"bjorvack:51-add-a-cli-tool-to-easily-add-manage-users","ref":"51-add-a-cli-tool-to-easily-add-manage-users","sha":"3a01ddcaeb5d79b4246c0d12e4abc50e86502e1a","user":{"login":"bjorvack","id":3007416,"avatar_url":"https://avatars.githubusercontent.com/u/3007416?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorvack","html_url":"https://github.com/bjorvack","followers_url":"https://api.github.com/users/bjorvack/followers","following_url":"https://api.github.com/users/bjorvack/following{/other_user}","gists_url":"https://api.github.com/users/bjorvack/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorvack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorvack/subscriptions","organizations_url":"https://api.github.com/users/bjorvack/orgs","repos_url":"https://api.github.com/users/bjorvack/repos","events_url":"https://api.github.com/users/bjorvack/events{/privacy}","received_events_url":"https://api.github.com/users/bjorvack/received_events","type":"User","site_admin":false},"repo":{"id":60343186,"name":"FrameworkMultiUserBundle","full_name":"bjorvack/FrameworkMultiUserBundle","owner":{"login":"bjorvack","id":3007416,"avatar_url":"https://avatars.githubusercontent.com/u/3007416?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorvack","html_url":"https://github.com/bjorvack","followers_url":"https://api.github.com/users/bjorvack/followers","following_url":"https://api.github.com/users/bjorvack/following{/other_user}","gists_url":"https://api.github.com/users/bjorvack/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorvack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorvack/subscriptions","organizations_url":"https://api.github.com/users/bjorvack/orgs","repos_url":"https://api.github.com/users/bjorvack/repos","events_url":"https://api.github.com/users/bjorvack/events{/privacy}","received_events_url":"https://api.github.com/users/bjorvack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjorvack/FrameworkMultiUserBundle","description":"","fork":true,"url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle","forks_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/forks","keys_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/teams","hooks_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/hooks","issue_events_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/events","assignees_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/tags","blobs_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/languages","stargazers_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/stargazers","contributors_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/contributors","subscribers_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/subscribers","subscription_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/subscription","commits_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/merges","archive_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/downloads","issues_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/releases{/id}","deployments_url":"https://api.github.com/repos/bjorvack/FrameworkMultiUserBundle/deployments","created_at":"2016-06-03T11:34:49Z","updated_at":"2016-06-03T11:34:50Z","pushed_at":"2016-06-07T15:31:34Z","git_url":"git://github.com/bjorvack/FrameworkMultiUserBundle.git","ssh_url":"git@github.com:bjorvack/FrameworkMultiUserBundle.git","clone_url":"https://github.com/bjorvack/FrameworkMultiUserBundle.git","svn_url":"https://github.com/bjorvack/FrameworkMultiUserBundle","homepage":null,"size":33,"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":"sumocoders:master","ref":"master","sha":"c76949076f4103e5edfb62ca370d36e91f2fdd80","user":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"repo":{"id":57367266,"name":"FrameworkMultiUserBundle","full_name":"sumocoders/FrameworkMultiUserBundle","owner":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sumocoders/FrameworkMultiUserBundle","description":"","fork":false,"url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle","forks_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/forks","keys_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/teams","hooks_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/hooks","issue_events_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/events","assignees_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/tags","blobs_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/languages","stargazers_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/stargazers","contributors_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/contributors","subscribers_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/subscribers","subscription_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/subscription","commits_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/merges","archive_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/downloads","issues_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/deployments","created_at":"2016-04-29T08:08:21Z","updated_at":"2016-04-29T08:42:26Z","pushed_at":"2016-06-07T15:31:34Z","git_url":"git://github.com/sumocoders/FrameworkMultiUserBundle.git","ssh_url":"git@github.com:sumocoders/FrameworkMultiUserBundle.git","clone_url":"https://github.com/sumocoders/FrameworkMultiUserBundle.git","svn_url":"https://github.com/sumocoders/FrameworkMultiUserBundle","homepage":null,"size":37,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10"},"html":{"href":"https://github.com/sumocoders/FrameworkMultiUserBundle/pull/10"},"issue":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/10"},"comments":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/sumocoders/FrameworkMultiUserBundle/statuses/3a01ddcaeb5d79b4246c0d12e4abc50e86502e1a"}}}}
{"actor":{"display_login":"WouterSioen"}}