mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Adjust the web wizard so that all database dependencies are grouped
refs #8508
This commit is contained in:
parent
8ed4a943f7
commit
87fe9bd2ff
@ -447,28 +447,17 @@ class WebWizard extends Wizard implements SetupWizard
|
|||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$requirements->add(new PhpModuleRequirement(array(
|
$mysqlRequirements = new Requirements();
|
||||||
|
$mysqlRequirements->add(new PhpModuleRequirement(array(
|
||||||
'optional' => true,
|
'optional' => true,
|
||||||
'condition' => 'mysql',
|
'condition' => 'mysql',
|
||||||
'alias' => 'PDO-MySQL',
|
'alias' => 'PDO-MySQL',
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'setup',
|
'setup',
|
||||||
'Is Icinga Web 2 supposed to access a MySQL database the PDO-MySQL module for PHP is required.'
|
'To store users or preferences in a MySQL database the PDO-MySQL module for PHP is required.'
|
||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
|
$mysqlRequirements->add(new ClassRequirement(array(
|
||||||
$requirements->add(new PhpModuleRequirement(array(
|
|
||||||
'optional' => true,
|
|
||||||
'condition' => 'pgsql',
|
|
||||||
'alias' => 'PDO-PostgreSQL',
|
|
||||||
'description' => mt(
|
|
||||||
'setup',
|
|
||||||
'Is Icinga Web 2 supposed to access a PostgreSQL database'
|
|
||||||
. ' the PDO-PostgreSQL module for PHP is required.'
|
|
||||||
)
|
|
||||||
)));
|
|
||||||
|
|
||||||
$requirements->add(new ClassRequirement(array(
|
|
||||||
'optional' => true,
|
'optional' => true,
|
||||||
'condition' => 'Zend_Db_Adapter_Pdo_Mysql',
|
'condition' => 'Zend_Db_Adapter_Pdo_Mysql',
|
||||||
'alias' => mt('setup', 'Zend database adapter for MySQL'),
|
'alias' => mt('setup', 'Zend database adapter for MySQL'),
|
||||||
@ -477,8 +466,19 @@ class WebWizard extends Wizard implements SetupWizard
|
|||||||
'The Zend database adapter for MySQL is required to access a MySQL database.'
|
'The Zend database adapter for MySQL is required to access a MySQL database.'
|
||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
|
$requirements->merge($mysqlRequirements);
|
||||||
|
|
||||||
$requirements->add(new ClassRequirement(array(
|
$pgsqlRequirements = new Requirements();
|
||||||
|
$pgsqlRequirements->add(new PhpModuleRequirement(array(
|
||||||
|
'optional' => true,
|
||||||
|
'condition' => 'pgsql',
|
||||||
|
'alias' => 'PDO-PostgreSQL',
|
||||||
|
'description' => mt(
|
||||||
|
'setup',
|
||||||
|
'To store users or preferences in a PostgreSQL database the PDO-PostgreSQL module for PHP is required.'
|
||||||
|
)
|
||||||
|
)));
|
||||||
|
$pgsqlRequirements->add(new ClassRequirement(array(
|
||||||
'optional' => true,
|
'optional' => true,
|
||||||
'condition' => 'Zend_Db_Adapter_Pdo_Pgsql',
|
'condition' => 'Zend_Db_Adapter_Pdo_Pgsql',
|
||||||
'alias' => mt('setup', 'Zend database adapter for PostgreSQL'),
|
'alias' => mt('setup', 'Zend database adapter for PostgreSQL'),
|
||||||
@ -487,6 +487,7 @@ class WebWizard extends Wizard implements SetupWizard
|
|||||||
'The Zend database adapter for PostgreSQL is required to access a PostgreSQL database.'
|
'The Zend database adapter for PostgreSQL is required to access a PostgreSQL database.'
|
||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
|
$requirements->merge($pgsqlRequirements);
|
||||||
|
|
||||||
$requirements->add(new ConfigDirectoryRequirement(array(
|
$requirements->add(new ConfigDirectoryRequirement(array(
|
||||||
'condition' => Icinga::app()->getConfigDir(),
|
'condition' => Icinga::app()->getConfigDir(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user