diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-09 14:34:49 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-01-15 15:01:30 +0100 |
commit | 5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe (patch) | |
tree | 1224140aff058371464d2737a6a3d6ae17f34d06 /src/Wallabag/CoreBundle/DataFixtures | |
parent | 0aafb8dfcb098ae586dc87f3487b4948f8ae2314 (diff) | |
download | wallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.tar.gz wallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.tar.zst wallabag-5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe.zip |
Quickstart for beginners
Diffstat (limited to 'src/Wallabag/CoreBundle/DataFixtures')
-rw-r--r-- | src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php index 3b3c1e97..85084960 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php | |||
@@ -40,6 +40,15 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface | |||
40 | 40 | ||
41 | $this->addReference('bob-config', $bobConfig); | 41 | $this->addReference('bob-config', $bobConfig); |
42 | 42 | ||
43 | $emptyConfig = new Config($this->getReference('empty-user')); | ||
44 | $emptyConfig->setTheme('material'); | ||
45 | $emptyConfig->setItemsPerPage(10); | ||
46 | $emptyConfig->setLanguage('en'); | ||
47 | |||
48 | $manager->persist($emptyConfig); | ||
49 | |||
50 | $this->addReference('empty-config', $emptyConfig); | ||
51 | |||
43 | $manager->flush(); | 52 | $manager->flush(); |
44 | } | 53 | } |
45 | 54 | ||