Bonus: display driver in install command

This commit is contained in:
Jeremy Benoist 2016-10-08 20:33:21 +02:00
parent 3f60446756
commit a730cae384
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View 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>';