diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-22 10:50:27 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-22 10:50:27 +0100 |
commit | 0bd2cb1ecd2f9194735af77142390a94723d1b39 (patch) | |
tree | 12441ab858446410686cb93421f93df1f94e0cc9 /src/Wallabag/CoreBundle/Command/InstallCommand.php | |
parent | e4977b8a866f84f65f08c55c050a62f40170fdbf (diff) | |
download | wallabag-0bd2cb1ecd2f9194735af77142390a94723d1b39.tar.gz wallabag-0bd2cb1ecd2f9194735af77142390a94723d1b39.tar.zst wallabag-0bd2cb1ecd2f9194735af77142390a94723d1b39.zip |
Handle default value for new user
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/InstallCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/InstallCommand.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index a4301958..c1b72604 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -135,11 +135,10 @@ class InstallCommand extends ContainerAwareCommand | |||
135 | 135 | ||
136 | $em->persist($user); | 136 | $em->persist($user); |
137 | 137 | ||
138 | $config = new Config(); | 138 | $config = new Config($user); |
139 | $config->setUser($user); | 139 | $config->setTheme($this->getContainer()->getParameter('theme')); |
140 | $config->setTheme('baggy'); | 140 | $config->setItemsPerPage($this->getContainer()->getParameter('items_on_page')); |
141 | $config->setItemsPerPage(10); | 141 | $config->setLanguage($this->getContainer()->getParameter('language')); |
142 | $config->setLanguage('en_US'); | ||
143 | 142 | ||
144 | $em->persist($config); | 143 | $em->persist($config); |
145 | } | 144 | } |