$fulfilled = true;
- $label = '<comment>PDO Drivers</comment>';
- if (extension_loaded('pdo_sqlite') || extension_loaded('pdo_mysql') || extension_loaded('pdo_pgsql')) {
- $status = '<info>OK!</info>';
- $help = '';
- } else {
+ $label = '<comment>PDO Driver</comment>';
+ $status = '<info>OK!</info>';
+ $help = '';
+
+ if (!extension_loaded($this->getContainer()->getParameter('database_driver'))) {
$fulfilled = false;
$status = '<error>ERROR!</error>';
- $help = 'Needs one of sqlite, mysql or pgsql PDO drivers';
+ $help = 'Database driver "'.$this->getContainer()->getParameter('database_driver').'" is not installed.';
}
$rows = [];
foreach ($this->functionExists as $functionRequired) {
$label = '<comment>'.$functionRequired.'</comment>';
+ $status = '<info>OK!</info>';
+ $help = '';
- if (function_exists($functionRequired)) {
- $status = '<info>OK!</info>';
- $help = '';
- } else {
+ if (!function_exists($functionRequired)) {
$fulfilled = false;
$status = '<error>ERROR!</error>';
$help = 'You need the '.$functionRequired.' function activated';
$em->createQuery('DELETE FROM CraueConfigBundle:Setting')->execute();
$settings = [
- [
- 'name' => 'download_pictures',
- 'value' => '1',
- 'section' => 'entry',
- ],
[
'name' => 'carrot',
'value' => '1',