]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Bonus: display driver in install command
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 18:33:21 +0000 (20:33 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 18:33:21 +0000 (20:33 +0200)
src/Wallabag/CoreBundle/Command/InstallCommand.php

index cc7c2c94cf268be86cd4de51d895404a7d433ec2..42982e4a42240af3f9ed3647cc0866922131197c 100644 (file)
@@ -77,7 +77,7 @@ class InstallCommand extends ContainerAwareCommand
 
         // testing if database driver exists
         $fulfilled = true;
-        $label = '<comment>PDO Driver</comment>';
+        $label = '<comment>PDO Driver (%s)</comment>';
         $status = '<info>OK!</info>';
         $help = '';
 
@@ -87,7 +87,7 @@ class InstallCommand extends ContainerAwareCommand
             $help = 'Database driver "'.$this->getContainer()->getParameter('database_driver').'" is not installed.';
         }
 
-        $rows[] = [$label, $status, $help];
+        $rows[] = [sprintf($label, $this->getContainer()->getParameter('database_driver')), $status, $help];
 
         // testing if connection to the database can be etablished
         $label = '<comment>Database connection</comment>';