X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FORM%2FLoadConfigData.php;fp=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FORM%2FLoadConfigData.php;h=900e151d806afcdbd03b76f2cf505d3ddc369640;hb=0bf99bb144561525a34a50315b95efd6f543fe35;hp=0000000000000000000000000000000000000000;hpb=0bd2cb1ecd2f9194735af77142390a94723d1b39;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php new file mode 100644 index 00000000..900e151d --- /dev/null +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php @@ -0,0 +1,45 @@ +getReference('admin-user')); + $adminConfig->setTheme('baggy'); + $adminConfig->setItemsPerPage(30); + $adminConfig->setLanguage('en_US'); + + $manager->persist($adminConfig); + + $this->addReference('admin-config', $adminConfig); + + $bobConfig = new Config($this->getReference('bob-user')); + $bobConfig->setTheme('default'); + $bobConfig->setItemsPerPage(10); + $bobConfig->setLanguage('fr_FR'); + + $manager->persist($bobConfig); + + $this->addReference('bob-config', $bobConfig); + + $manager->flush(); + } + + /** + * {@inheritDoc} + */ + public function getOrder() + { + return 20; + } +}