Update requirements for PHP 8.1

This commit is contained in:
Johannes Meyer 2022-03-24 15:46:26 +01:00
parent 38103bed83
commit d63f645bd8
3 changed files with 5 additions and 5 deletions

View File

@ -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.8', 'icinga-php-thirdparty' => '>= 0.10']; $coreDeps = ['icinga-php-library' => '>= 0.9', 'icinga-php-thirdparty' => '>= 0.11'];
foreach ($coreDeps as $libraryName => $requiredVersion) { foreach ($coreDeps as $libraryName => $requiredVersion) {
if (! $libraries->has($libraryName)) { if (! $libraries->has($libraryName)) {

View File

@ -388,8 +388,8 @@ You will need to install certain dependencies depending on your setup:
* [Icinga 2](https://icinga.com/products/icinga-2/) with the IDO database backend (MySQL or PostgreSQL) * [Icinga 2](https://icinga.com/products/icinga-2/) with the IDO database backend (MySQL or PostgreSQL)
* 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.8) * [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (>= 0.9)
* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (>= 0.10) * [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (>= 0.11)
* 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
* For exports to PDF also the following PHP modules are required: mbstring, GD, Imagick * For exports to PDF also the following PHP modules are required: mbstring, GD, Imagick
* LDAP PHP library when using Active Directory or LDAP for authentication * LDAP PHP library when using Active Directory or LDAP for authentication

View File

@ -586,7 +586,7 @@ class WebWizard extends Wizard implements SetupWizard
))); )));
$set->add(new WebLibraryRequirement(array( $set->add(new WebLibraryRequirement(array(
'condition' => ['icinga-php-library', '>=', '0.8.0'], 'condition' => ['icinga-php-library', '>=', '0.9.0'],
'alias' => 'Icinga PHP library', 'alias' => 'Icinga PHP library',
'description' => mt( 'description' => mt(
'setup', 'setup',
@ -595,7 +595,7 @@ class WebWizard extends Wizard implements SetupWizard
))); )));
$set->add(new WebLibraryRequirement(array( $set->add(new WebLibraryRequirement(array(
'condition' => ['icinga-php-thirdparty', '>=', '0.10.0'], 'condition' => ['icinga-php-thirdparty', '>=', '0.11.0'],
'alias' => 'Icinga PHP Thirdparty', 'alias' => 'Icinga PHP Thirdparty',
'description' => mt( 'description' => mt(
'setup', 'setup',