]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Command/InstallCommand.php
Some cleanup
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Command / InstallCommand.php
index 114b8726b43124b2bde02428a0828a4de836ce88..c9dad0df71eff039030eb6aea08ac663ec1325f6 100644 (file)
@@ -30,10 +30,8 @@ class InstallCommand extends ContainerAwareCommand
      * @var array
      */
     protected $functionExists = [
-        'tidy_parse_string',
         'curl_exec',
         'curl_multi_init',
-        'gettext',
     ];
 
     protected function configure()
@@ -96,7 +94,7 @@ class InstallCommand extends ContainerAwareCommand
             } else {
                 $fulfilled = false;
                 $status = '<error>ERROR!</error>';
-                $help = 'You need the '.$requirement.' function activated';
+                $help = 'You need the '.$functionRequired.' function activated';
             }
 
             $rows[] = array($label, $status, $help);
@@ -195,7 +193,7 @@ class InstallCommand extends ContainerAwareCommand
         $this->defaultOutput->writeln('<info><comment>Step 3 of 4.</comment> Administration setup.</info>');
 
         $questionHelper = $this->getHelperSet()->get('question');
-        $question = new ConfirmationQuestion('Would you like to create a new admin user (recommended) ? (y/N)', true);
+        $question = new ConfirmationQuestion('Would you like to create a new admin user (recommended) ? (Y/n)', true);
 
         if (!$questionHelper->ask($this->defaultInput, $this->defaultOutput, $question)) {
             return $this;
@@ -224,6 +222,7 @@ class InstallCommand extends ContainerAwareCommand
         $config->setTheme($this->getContainer()->getParameter('wallabag_core.theme'));
         $config->setItemsPerPage($this->getContainer()->getParameter('wallabag_core.items_on_page'));
         $config->setRssLimit($this->getContainer()->getParameter('wallabag_core.rss_limit'));
+        $config->setReadingSpeed($this->getContainer()->getParameter('wallabag_core.reading_speed'));
         $config->setLanguage($this->getContainer()->getParameter('wallabag_core.language'));
 
         $em->persist($config);