aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-09 14:34:49 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-15 15:01:30 +0100
commit5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe (patch)
tree1224140aff058371464d2737a6a3d6ae17f34d06 /src/Wallabag/UserBundle
parent0aafb8dfcb098ae586dc87f3487b4948f8ae2314 (diff)
downloadwallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.tar.gz
wallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.tar.zst
wallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.zip
Quickstart for beginners
Diffstat (limited to 'src/Wallabag/UserBundle')
-rw-r--r--src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
index d48855da..26dbda3b 100644
--- a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
+++ b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
@@ -37,6 +37,17 @@ class LoadUserData extends AbstractFixture implements OrderedFixtureInterface
37 37
38 $this->addReference('bob-user', $bobUser); 38 $this->addReference('bob-user', $bobUser);
39 39
40 $emptyUser = new User();
41 $emptyUser->setName('Empty');
42 $emptyUser->setEmail('empty@wallabag.org');
43 $emptyUser->setUsername('empty');
44 $emptyUser->setPlainPassword('mypassword');
45 $emptyUser->setEnabled(true);
46
47 $manager->persist($emptyUser);
48
49 $this->addReference('empty-user', $emptyUser);
50
40 $manager->flush(); 51 $manager->flush();
41 } 52 }
42 53