mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +00:00
Bonus: display driver in install command
This commit is contained in:
parent
3f60446756
commit
a730cae384
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class InstallCommand extends ContainerAwareCommand
|
||||||
|
|
||||||
// testing if database driver exists
|
// testing if database driver exists
|
||||||
$fulfilled = true;
|
$fulfilled = true;
|
||||||
$label = '<comment>PDO Driver</comment>';
|
$label = '<comment>PDO Driver (%s)</comment>';
|
||||||
$status = '<info>OK!</info>';
|
$status = '<info>OK!</info>';
|
||||||
$help = '';
|
$help = '';
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ class InstallCommand extends ContainerAwareCommand
|
||||||
$help = 'Database driver "'.$this->getContainer()->getParameter('database_driver').'" is not installed.';
|
$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
|
// testing if connection to the database can be etablished
|
||||||
$label = '<comment>Database connection</comment>';
|
$label = '<comment>Database connection</comment>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue