Raise library requirements
This commit is contained in:
parent
21d631ad7e
commit
2432d055e6
|
@ -23,7 +23,7 @@ $modReason = [];
|
||||||
|
|
||||||
if (isset($requiredVendor, $requiredProject) && $requiredVendor && $requiredProject) {
|
if (isset($requiredVendor, $requiredProject) && $requiredVendor && $requiredProject) {
|
||||||
// TODO: I don't like this, can we define requirements somewhere else?
|
// TODO: I don't like this, can we define requirements somewhere else?
|
||||||
$coreDeps = ['icinga-php-library' => '>= 0.9', 'icinga-php-thirdparty' => '>= 0.11'];
|
$coreDeps = ['icinga-php-library' => '>= 0.13', 'icinga-php-thirdparty' => '>= 0.12'];
|
||||||
|
|
||||||
foreach ($coreDeps as $libraryName => $requiredVersion) {
|
foreach ($coreDeps as $libraryName => $requiredVersion) {
|
||||||
if (! $libraries->has($libraryName)) {
|
if (! $libraries->has($libraryName)) {
|
||||||
|
|
|
@ -395,8 +395,8 @@ You will need to install certain dependencies depending on your setup:
|
||||||
monitor your infrastructure
|
monitor your infrastructure
|
||||||
* A web server, e.g. Apache or Nginx
|
* A web server, e.g. Apache or Nginx
|
||||||
* PHP version ≥ 7.2
|
* PHP version ≥ 7.2
|
||||||
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥ 0.9)
|
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥ 0.13)
|
||||||
* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (≥ 0.11)
|
* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (≥ 0.12)
|
||||||
* The following PHP modules must be installed: cURL, json, gettext, fileinfo, intl, dom, OpenSSL and xml
|
* The following PHP modules must be installed: cURL, json, gettext, fileinfo, intl, dom, OpenSSL and xml
|
||||||
* The [pdfexport](https://github.com/Icinga/icingaweb2-module-pdfexport) module (≥0.10) is required for the
|
* The [pdfexport](https://github.com/Icinga/icingaweb2-module-pdfexport) module (≥0.10) is required for the
|
||||||
export to PDF
|
export to PDF
|
||||||
|
|
|
@ -601,7 +601,7 @@ class WebWizard extends Wizard implements SetupWizard
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$set->add(new WebLibraryRequirement(array(
|
$set->add(new WebLibraryRequirement(array(
|
||||||
'condition' => ['icinga-php-library', '>=', '0.9.0'],
|
'condition' => ['icinga-php-library', '>=', '0.13.0'],
|
||||||
'alias' => 'Icinga PHP library',
|
'alias' => 'Icinga PHP library',
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'setup',
|
'setup',
|
||||||
|
@ -610,7 +610,7 @@ class WebWizard extends Wizard implements SetupWizard
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$set->add(new WebLibraryRequirement(array(
|
$set->add(new WebLibraryRequirement(array(
|
||||||
'condition' => ['icinga-php-thirdparty', '>=', '0.11.0'],
|
'condition' => ['icinga-php-thirdparty', '>=', '0.12.0'],
|
||||||
'alias' => 'Icinga PHP Thirdparty',
|
'alias' => 'Icinga PHP Thirdparty',
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'setup',
|
'setup',
|
||||||
|
|
Loading…
Reference in New Issue