{"action":"created","comment":{"url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/comments/42917292","id":42917292,"diff_hunk":"@@ -0,0 +1,46 @@\n+<?php\n+\n+namespace AppBuild\\Bundle\\UserBundle\\DataFixtures\\ORM;\n+\n+use Doctrine\\Common\\DataFixtures\\FixtureInterface;\n+use Doctrine\\Common\\Persistence\\ObjectManager;\n+use AppBuild\\Bundle\\UserBundle\\Entity\\User;\n+use Symfony\\Component\\DependencyInjection\\ContainerAwareInterface;\n+use Symfony\\Component\\DependencyInjection\\ContainerInterface;\n+\n+class LoadUserData implements FixtureInterface, ContainerAwareInterface\n+{\n+    /**\n+     * @var ContainerInterface\n+     */\n+    private $container;\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function setContainer(ContainerInterface $container = null)\n+    {\n+        $this->container = $container;\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function load(ObjectManager $manager)\n+    {\n+        $userAdmin = new User();\n+        $userAdmin->setEmail('admin');\n+        $userAdmin->setSalt(base_convert(sha1(uniqid(mt_rand(), true)), 16, 36));\n+        $encoder = $this->container\n+            ->get('security.encoder_factory')\n+            ->getEncoder($userAdmin)\n+        ;\n+        $userAdmin->setPassword($encoder->encodePassword('secret', $userAdmin->getSalt()));\n+        $userAdmin->setEnabled(true);\n+        $userAdmin->setFirstName('admin');\n+        $userAdmin->setLastName('admin');\n+\n+        $manager->persist($userAdmin);\n+        $manager->flush();\n+    }\n+}","path":"src/AppBuild/Bundle/UserBundle/DataFixtures/ORM/LoadUserData.php","position":46,"original_position":46,"commit_id":"8bebaa21d08a1206dd69934948763163b944e975","original_commit_id":"8bebaa21d08a1206dd69934948763163b944e975","user":{"login":"Oliboy50","id":2571084,"avatar_url":"https://avatars.githubusercontent.com/u/2571084?v=3","gravatar_id":"","url":"https://api.github.com/users/Oliboy50","html_url":"https://github.com/Oliboy50","followers_url":"https://api.github.com/users/Oliboy50/followers","following_url":"https://api.github.com/users/Oliboy50/following{/other_user}","gists_url":"https://api.github.com/users/Oliboy50/gists{/gist_id}","starred_url":"https://api.github.com/users/Oliboy50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oliboy50/subscriptions","organizations_url":"https://api.github.com/users/Oliboy50/orgs","repos_url":"https://api.github.com/users/Oliboy50/repos","events_url":"https://api.github.com/users/Oliboy50/events{/privacy}","received_events_url":"https://api.github.com/users/Oliboy50/received_events","type":"User","site_admin":false},"body":"On utilise hautelook/AliceBundle https://github.com/hautelook/AliceBundle exprès pour avoir des fixtures en YAML :p ","created_at":"2015-10-23T21:38:14Z","updated_at":"2015-10-23T21:38:14Z","html_url":"https://github.com/LinkValue/AppBuildServer/pull/6#discussion_r42917292","pull_request_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/comments/42917292"},"html":{"href":"https://github.com/LinkValue/AppBuildServer/pull/6#discussion_r42917292"},"pull_request":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6","id":48598847,"html_url":"https://github.com/LinkValue/AppBuildServer/pull/6","diff_url":"https://github.com/LinkValue/AppBuildServer/pull/6.diff","patch_url":"https://github.com/LinkValue/AppBuildServer/pull/6.patch","issue_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/6","number":6,"state":"open","locked":false,"title":"add user bundle + firewall","user":{"login":"shinmen","id":4790740,"avatar_url":"https://avatars.githubusercontent.com/u/4790740?v=3","gravatar_id":"","url":"https://api.github.com/users/shinmen","html_url":"https://github.com/shinmen","followers_url":"https://api.github.com/users/shinmen/followers","following_url":"https://api.github.com/users/shinmen/following{/other_user}","gists_url":"https://api.github.com/users/shinmen/gists{/gist_id}","starred_url":"https://api.github.com/users/shinmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinmen/subscriptions","organizations_url":"https://api.github.com/users/shinmen/orgs","repos_url":"https://api.github.com/users/shinmen/repos","events_url":"https://api.github.com/users/shinmen/events{/privacy}","received_events_url":"https://api.github.com/users/shinmen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-23T16:09:14Z","updated_at":"2015-10-23T21:38:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a335a57eb32894c4be350259553a51265f980cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6/commits","review_comments_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6/comments","review_comment_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/6/comments","statuses_url":"https://api.github.com/repos/LinkValue/AppBuildServer/statuses/8bebaa21d08a1206dd69934948763163b944e975","head":{"label":"LinkValue:structure_project","ref":"structure_project","sha":"8bebaa21d08a1206dd69934948763163b944e975","user":{"login":"LinkValue","id":8301788,"avatar_url":"https://avatars.githubusercontent.com/u/8301788?v=3","gravatar_id":"","url":"https://api.github.com/users/LinkValue","html_url":"https://github.com/LinkValue","followers_url":"https://api.github.com/users/LinkValue/followers","following_url":"https://api.github.com/users/LinkValue/following{/other_user}","gists_url":"https://api.github.com/users/LinkValue/gists{/gist_id}","starred_url":"https://api.github.com/users/LinkValue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinkValue/subscriptions","organizations_url":"https://api.github.com/users/LinkValue/orgs","repos_url":"https://api.github.com/users/LinkValue/repos","events_url":"https://api.github.com/users/LinkValue/events{/privacy}","received_events_url":"https://api.github.com/users/LinkValue/received_events","type":"Organization","site_admin":false},"repo":{"id":43132296,"name":"AppBuildServer","full_name":"LinkValue/AppBuildServer","owner":{"login":"LinkValue","id":8301788,"avatar_url":"https://avatars.githubusercontent.com/u/8301788?v=3","gravatar_id":"","url":"https://api.github.com/users/LinkValue","html_url":"https://github.com/LinkValue","followers_url":"https://api.github.com/users/LinkValue/followers","following_url":"https://api.github.com/users/LinkValue/following{/other_user}","gists_url":"https://api.github.com/users/LinkValue/gists{/gist_id}","starred_url":"https://api.github.com/users/LinkValue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinkValue/subscriptions","organizations_url":"https://api.github.com/users/LinkValue/orgs","repos_url":"https://api.github.com/users/LinkValue/repos","events_url":"https://api.github.com/users/LinkValue/events{/privacy}","received_events_url":"https://api.github.com/users/LinkValue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LinkValue/AppBuildServer","description":"Permet l'hébergement de builds d'application et leur téléchargement pour une installation simple.","fork":false,"url":"https://api.github.com/repos/LinkValue/AppBuildServer","forks_url":"https://api.github.com/repos/LinkValue/AppBuildServer/forks","keys_url":"https://api.github.com/repos/LinkValue/AppBuildServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinkValue/AppBuildServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinkValue/AppBuildServer/teams","hooks_url":"https://api.github.com/repos/LinkValue/AppBuildServer/hooks","issue_events_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/events{/number}","events_url":"https://api.github.com/repos/LinkValue/AppBuildServer/events","assignees_url":"https://api.github.com/repos/LinkValue/AppBuildServer/assignees{/user}","branches_url":"https://api.github.com/repos/LinkValue/AppBuildServer/branches{/branch}","tags_url":"https://api.github.com/repos/LinkValue/AppBuildServer/tags","blobs_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinkValue/AppBuildServer/statuses/{sha}","languages_url":"https://api.github.com/repos/LinkValue/AppBuildServer/languages","stargazers_url":"https://api.github.com/repos/LinkValue/AppBuildServer/stargazers","contributors_url":"https://api.github.com/repos/LinkValue/AppBuildServer/contributors","subscribers_url":"https://api.github.com/repos/LinkValue/AppBuildServer/subscribers","subscription_url":"https://api.github.com/repos/LinkValue/AppBuildServer/subscription","commits_url":"https://api.github.com/repos/LinkValue/AppBuildServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinkValue/AppBuildServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinkValue/AppBuildServer/contents/{+path}","compare_url":"https://api.github.com/repos/LinkValue/AppBuildServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinkValue/AppBuildServer/merges","archive_url":"https://api.github.com/repos/LinkValue/AppBuildServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinkValue/AppBuildServer/downloads","issues_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues{/number}","pulls_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls{/number}","milestones_url":"https://api.github.com/repos/LinkValue/AppBuildServer/milestones{/number}","notifications_url":"https://api.github.com/repos/LinkValue/AppBuildServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinkValue/AppBuildServer/labels{/name}","releases_url":"https://api.github.com/repos/LinkValue/AppBuildServer/releases{/id}","created_at":"2015-09-25T10:29:26Z","updated_at":"2015-09-25T10:33:53Z","pushed_at":"2015-10-23T16:09:14Z","git_url":"git://github.com/LinkValue/AppBuildServer.git","ssh_url":"git@github.com:LinkValue/AppBuildServer.git","clone_url":"https://github.com/LinkValue/AppBuildServer.git","svn_url":"https://github.com/LinkValue/AppBuildServer","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"LinkValue:master","ref":"master","sha":"926d809932436ce9369d0798266e357f67051517","user":{"login":"LinkValue","id":8301788,"avatar_url":"https://avatars.githubusercontent.com/u/8301788?v=3","gravatar_id":"","url":"https://api.github.com/users/LinkValue","html_url":"https://github.com/LinkValue","followers_url":"https://api.github.com/users/LinkValue/followers","following_url":"https://api.github.com/users/LinkValue/following{/other_user}","gists_url":"https://api.github.com/users/LinkValue/gists{/gist_id}","starred_url":"https://api.github.com/users/LinkValue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinkValue/subscriptions","organizations_url":"https://api.github.com/users/LinkValue/orgs","repos_url":"https://api.github.com/users/LinkValue/repos","events_url":"https://api.github.com/users/LinkValue/events{/privacy}","received_events_url":"https://api.github.com/users/LinkValue/received_events","type":"Organization","site_admin":false},"repo":{"id":43132296,"name":"AppBuildServer","full_name":"LinkValue/AppBuildServer","owner":{"login":"LinkValue","id":8301788,"avatar_url":"https://avatars.githubusercontent.com/u/8301788?v=3","gravatar_id":"","url":"https://api.github.com/users/LinkValue","html_url":"https://github.com/LinkValue","followers_url":"https://api.github.com/users/LinkValue/followers","following_url":"https://api.github.com/users/LinkValue/following{/other_user}","gists_url":"https://api.github.com/users/LinkValue/gists{/gist_id}","starred_url":"https://api.github.com/users/LinkValue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinkValue/subscriptions","organizations_url":"https://api.github.com/users/LinkValue/orgs","repos_url":"https://api.github.com/users/LinkValue/repos","events_url":"https://api.github.com/users/LinkValue/events{/privacy}","received_events_url":"https://api.github.com/users/LinkValue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LinkValue/AppBuildServer","description":"Permet l'hébergement de builds d'application et leur téléchargement pour une installation simple.","fork":false,"url":"https://api.github.com/repos/LinkValue/AppBuildServer","forks_url":"https://api.github.com/repos/LinkValue/AppBuildServer/forks","keys_url":"https://api.github.com/repos/LinkValue/AppBuildServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinkValue/AppBuildServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinkValue/AppBuildServer/teams","hooks_url":"https://api.github.com/repos/LinkValue/AppBuildServer/hooks","issue_events_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/events{/number}","events_url":"https://api.github.com/repos/LinkValue/AppBuildServer/events","assignees_url":"https://api.github.com/repos/LinkValue/AppBuildServer/assignees{/user}","branches_url":"https://api.github.com/repos/LinkValue/AppBuildServer/branches{/branch}","tags_url":"https://api.github.com/repos/LinkValue/AppBuildServer/tags","blobs_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinkValue/AppBuildServer/statuses/{sha}","languages_url":"https://api.github.com/repos/LinkValue/AppBuildServer/languages","stargazers_url":"https://api.github.com/repos/LinkValue/AppBuildServer/stargazers","contributors_url":"https://api.github.com/repos/LinkValue/AppBuildServer/contributors","subscribers_url":"https://api.github.com/repos/LinkValue/AppBuildServer/subscribers","subscription_url":"https://api.github.com/repos/LinkValue/AppBuildServer/subscription","commits_url":"https://api.github.com/repos/LinkValue/AppBuildServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinkValue/AppBuildServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinkValue/AppBuildServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinkValue/AppBuildServer/contents/{+path}","compare_url":"https://api.github.com/repos/LinkValue/AppBuildServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinkValue/AppBuildServer/merges","archive_url":"https://api.github.com/repos/LinkValue/AppBuildServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinkValue/AppBuildServer/downloads","issues_url":"https://api.github.com/repos/LinkValue/AppBuildServer/issues{/number}","pulls_url":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls{/number}","milestones_url":"https://api.github.com/repos/LinkValue/AppBuildServer/milestones{/number}","notifications_url":"https://api.github.com/repos/LinkValue/AppBuildServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinkValue/AppBuildServer/labels{/name}","releases_url":"https://api.github.com/repos/LinkValue/AppBuildServer/releases{/id}","created_at":"2015-09-25T10:29:26Z","updated_at":"2015-09-25T10:33:53Z","pushed_at":"2015-10-23T16:09:14Z","git_url":"git://github.com/LinkValue/AppBuildServer.git","ssh_url":"git@github.com:LinkValue/AppBuildServer.git","clone_url":"https://github.com/LinkValue/AppBuildServer.git","svn_url":"https://github.com/LinkValue/AppBuildServer","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6"},"html":{"href":"https://github.com/LinkValue/AppBuildServer/pull/6"},"issue":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/6"},"comments":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/LinkValue/AppBuildServer/statuses/8bebaa21d08a1206dd69934948763163b944e975"}}}}