{"action":"created","comment":{"url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/comments/35964411","id":35964411,"diff_hunk":"@@ -0,0 +1,83 @@\n+<?php\n+\n+/**\n+ * (c) FSi sp. z o.o. <info@fsi.pl>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace FSi\\Bundle\\AdminSecurityBundle\\Command;\n+\n+use FSi\\Bundle\\AdminSecurityBundle\\Event\\ActivationEvent;\n+use FSi\\Bundle\\AdminSecurityBundle\\Event\\AdminSecurityEvents;\n+use FSi\\Bundle\\AdminSecurityBundle\\Security\\User\\UserActivableInterface;\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 ActivateUserCommand extends ContainerAwareCommand\n+{\n+    /**\n+     * @see Command\n+     */\n+    protected function configure()\n+    {\n+        $this\n+            ->setName('fsi:user:activate')\n+            ->setDescription('Activate a user.')\n+            ->setDefinition(array(\n+                new InputArgument('email', InputArgument::REQUIRED, 'The email'),\n+            ))\n+            ->setHelp(<<<EOT\n+The <info>fsi:user:activate</info> command activates the user\n+\n+  <info>php app/console fsi:user:activate john@example.com</info>\n+\n+EOT\n+            );\n+    }\n+\n+    /**\n+     * @see Command\n+     */\n+    protected function execute(InputInterface $input, OutputInterface $output)\n+    {\n+        $email      = $input->getArgument('email');","path":"Command/ActivateUserCommand.php","position":47,"original_position":47,"commit_id":"80d18fa5d8057f2a763209cc334d56da71fd2ae2","original_commit_id":"80d18fa5d8057f2a763209cc334d56da71fd2ae2","user":{"login":"szymach","id":2230556,"avatar_url":"https://avatars.githubusercontent.com/u/2230556?v=3","gravatar_id":"","url":"https://api.github.com/users/szymach","html_url":"https://github.com/szymach","followers_url":"https://api.github.com/users/szymach/followers","following_url":"https://api.github.com/users/szymach/following{/other_user}","gists_url":"https://api.github.com/users/szymach/gists{/gist_id}","starred_url":"https://api.github.com/users/szymach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymach/subscriptions","organizations_url":"https://api.github.com/users/szymach/orgs","repos_url":"https://api.github.com/users/szymach/repos","events_url":"https://api.github.com/users/szymach/events{/privacy}","received_events_url":"https://api.github.com/users/szymach/received_events","type":"User","site_admin":false},"body":"excessive spaces","created_at":"2015-07-31T11:01:34Z","updated_at":"2015-07-31T11:01:34Z","html_url":"https://github.com/fsi-open/admin-security-bundle/pull/35#discussion_r35964411","pull_request_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/comments/35964411"},"html":{"href":"https://github.com/fsi-open/admin-security-bundle/pull/35#discussion_r35964411"},"pull_request":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35","id":41328787,"html_url":"https://github.com/fsi-open/admin-security-bundle/pull/35","diff_url":"https://github.com/fsi-open/admin-security-bundle/pull/35.diff","patch_url":"https://github.com/fsi-open/admin-security-bundle/pull/35.patch","issue_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/35","number":35,"state":"open","locked":false,"title":"New commands, event listeners, refactoring","user":{"login":"chives","id":1170578,"avatar_url":"https://avatars.githubusercontent.com/u/1170578?v=3","gravatar_id":"","url":"https://api.github.com/users/chives","html_url":"https://github.com/chives","followers_url":"https://api.github.com/users/chives/followers","following_url":"https://api.github.com/users/chives/following{/other_user}","gists_url":"https://api.github.com/users/chives/gists{/gist_id}","starred_url":"https://api.github.com/users/chives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chives/subscriptions","organizations_url":"https://api.github.com/users/chives/orgs","repos_url":"https://api.github.com/users/chives/repos","events_url":"https://api.github.com/users/chives/events{/privacy}","received_events_url":"https://api.github.com/users/chives/received_events","type":"User","site_admin":false},"body":"- Change password console command\r\n- Activate/deactivate console command\r\n- Saving last login for the user\r\n- Separated templates for changing passowrd during resetting and activation","created_at":"2015-07-31T11:00:29Z","updated_at":"2015-07-31T11:01:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d17cb59e0cb67f057e94420579ffbed74a9cce0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35/commits","review_comments_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35/comments","review_comment_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/35/comments","statuses_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/statuses/80d18fa5d8057f2a763209cc334d56da71fd2ae2","head":{"label":"chives:dev","ref":"dev","sha":"80d18fa5d8057f2a763209cc334d56da71fd2ae2","user":{"login":"chives","id":1170578,"avatar_url":"https://avatars.githubusercontent.com/u/1170578?v=3","gravatar_id":"","url":"https://api.github.com/users/chives","html_url":"https://github.com/chives","followers_url":"https://api.github.com/users/chives/followers","following_url":"https://api.github.com/users/chives/following{/other_user}","gists_url":"https://api.github.com/users/chives/gists{/gist_id}","starred_url":"https://api.github.com/users/chives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chives/subscriptions","organizations_url":"https://api.github.com/users/chives/orgs","repos_url":"https://api.github.com/users/chives/repos","events_url":"https://api.github.com/users/chives/events{/privacy}","received_events_url":"https://api.github.com/users/chives/received_events","type":"User","site_admin":false},"repo":{"id":17407235,"name":"admin-security-bundle","full_name":"chives/admin-security-bundle","owner":{"login":"chives","id":1170578,"avatar_url":"https://avatars.githubusercontent.com/u/1170578?v=3","gravatar_id":"","url":"https://api.github.com/users/chives","html_url":"https://github.com/chives","followers_url":"https://api.github.com/users/chives/followers","following_url":"https://api.github.com/users/chives/following{/other_user}","gists_url":"https://api.github.com/users/chives/gists{/gist_id}","starred_url":"https://api.github.com/users/chives/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chives/subscriptions","organizations_url":"https://api.github.com/users/chives/orgs","repos_url":"https://api.github.com/users/chives/repos","events_url":"https://api.github.com/users/chives/events{/privacy}","received_events_url":"https://api.github.com/users/chives/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chives/admin-security-bundle","description":"Purpose of this bundle is to provide simple authentication & authorization mechanisms for fsi/admin-bundle","fork":true,"url":"https://api.github.com/repos/chives/admin-security-bundle","forks_url":"https://api.github.com/repos/chives/admin-security-bundle/forks","keys_url":"https://api.github.com/repos/chives/admin-security-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chives/admin-security-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chives/admin-security-bundle/teams","hooks_url":"https://api.github.com/repos/chives/admin-security-bundle/hooks","issue_events_url":"https://api.github.com/repos/chives/admin-security-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/chives/admin-security-bundle/events","assignees_url":"https://api.github.com/repos/chives/admin-security-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/chives/admin-security-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/chives/admin-security-bundle/tags","blobs_url":"https://api.github.com/repos/chives/admin-security-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chives/admin-security-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chives/admin-security-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/chives/admin-security-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chives/admin-security-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/chives/admin-security-bundle/languages","stargazers_url":"https://api.github.com/repos/chives/admin-security-bundle/stargazers","contributors_url":"https://api.github.com/repos/chives/admin-security-bundle/contributors","subscribers_url":"https://api.github.com/repos/chives/admin-security-bundle/subscribers","subscription_url":"https://api.github.com/repos/chives/admin-security-bundle/subscription","commits_url":"https://api.github.com/repos/chives/admin-security-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/chives/admin-security-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/chives/admin-security-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/chives/admin-security-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/chives/admin-security-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/chives/admin-security-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chives/admin-security-bundle/merges","archive_url":"https://api.github.com/repos/chives/admin-security-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chives/admin-security-bundle/downloads","issues_url":"https://api.github.com/repos/chives/admin-security-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/chives/admin-security-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/chives/admin-security-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/chives/admin-security-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chives/admin-security-bundle/labels{/name}","releases_url":"https://api.github.com/repos/chives/admin-security-bundle/releases{/id}","created_at":"2014-03-04T15:42:01Z","updated_at":"2014-03-25T08:53:10Z","pushed_at":"2015-07-31T10:57:51Z","git_url":"git://github.com/chives/admin-security-bundle.git","ssh_url":"git@github.com:chives/admin-security-bundle.git","clone_url":"https://github.com/chives/admin-security-bundle.git","svn_url":"https://github.com/chives/admin-security-bundle","homepage":null,"size":328,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fsi-open:remove-fosub","ref":"remove-fosub","sha":"af6112c46b7d4474c3f88e7269534a67f45eb585","user":{"login":"fsi-open","id":2317182,"avatar_url":"https://avatars.githubusercontent.com/u/2317182?v=3","gravatar_id":"","url":"https://api.github.com/users/fsi-open","html_url":"https://github.com/fsi-open","followers_url":"https://api.github.com/users/fsi-open/followers","following_url":"https://api.github.com/users/fsi-open/following{/other_user}","gists_url":"https://api.github.com/users/fsi-open/gists{/gist_id}","starred_url":"https://api.github.com/users/fsi-open/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsi-open/subscriptions","organizations_url":"https://api.github.com/users/fsi-open/orgs","repos_url":"https://api.github.com/users/fsi-open/repos","events_url":"https://api.github.com/users/fsi-open/events{/privacy}","received_events_url":"https://api.github.com/users/fsi-open/received_events","type":"Organization","site_admin":false},"repo":{"id":15117760,"name":"admin-security-bundle","full_name":"fsi-open/admin-security-bundle","owner":{"login":"fsi-open","id":2317182,"avatar_url":"https://avatars.githubusercontent.com/u/2317182?v=3","gravatar_id":"","url":"https://api.github.com/users/fsi-open","html_url":"https://github.com/fsi-open","followers_url":"https://api.github.com/users/fsi-open/followers","following_url":"https://api.github.com/users/fsi-open/following{/other_user}","gists_url":"https://api.github.com/users/fsi-open/gists{/gist_id}","starred_url":"https://api.github.com/users/fsi-open/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsi-open/subscriptions","organizations_url":"https://api.github.com/users/fsi-open/orgs","repos_url":"https://api.github.com/users/fsi-open/repos","events_url":"https://api.github.com/users/fsi-open/events{/privacy}","received_events_url":"https://api.github.com/users/fsi-open/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsi-open/admin-security-bundle","description":"Purpose of this bundle is to provide simple authentication & authorization mechanisms for fsi/admin-bundle","fork":false,"url":"https://api.github.com/repos/fsi-open/admin-security-bundle","forks_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/forks","keys_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/teams","hooks_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/hooks","issue_events_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/events","assignees_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/tags","blobs_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/languages","stargazers_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/stargazers","contributors_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/contributors","subscribers_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/subscribers","subscription_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/subscription","commits_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/merges","archive_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/downloads","issues_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/labels{/name}","releases_url":"https://api.github.com/repos/fsi-open/admin-security-bundle/releases{/id}","created_at":"2013-12-11T20:10:15Z","updated_at":"2015-04-30T11:32:55Z","pushed_at":"2015-07-31T11:00:29Z","git_url":"git://github.com/fsi-open/admin-security-bundle.git","ssh_url":"git@github.com:fsi-open/admin-security-bundle.git","clone_url":"https://github.com/fsi-open/admin-security-bundle.git","svn_url":"https://github.com/fsi-open/admin-security-bundle","homepage":null,"size":556,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35"},"html":{"href":"https://github.com/fsi-open/admin-security-bundle/pull/35"},"issue":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/35"},"comments":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/fsi-open/admin-security-bundle/statuses/80d18fa5d8057f2a763209cc334d56da71fd2ae2"}}}}