Skip to content

Commit

Permalink
Raise library requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 21, 2023
1 parent 21d631a commit 2432d05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/views/scripts/error/error.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $modReason = [];

if (isset($requiredVendor, $requiredProject) && $requiredVendor && $requiredProject) {
// 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) {
if (! $libraries->has($libraryName)) {
Expand Down
4 changes: 2 additions & 2 deletions doc/02-Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ You will need to install certain dependencies depending on your setup:
monitor your infrastructure
* A web server, e.g. Apache or Nginx
* PHP version ≥ 7.2
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥ 0.9)
* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (≥ 0.11)
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥ 0.13)
* [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 [pdfexport](https://github.com/Icinga/icingaweb2-module-pdfexport) module (≥0.10) is required for the
export to PDF
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/library/Setup/WebWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public function getRequirements($skipModules = false)
)));

$set->add(new WebLibraryRequirement(array(
'condition' => ['icinga-php-library', '>=', '0.9.0'],
'condition' => ['icinga-php-library', '>=', '0.13.0'],
'alias' => 'Icinga PHP library',
'description' => mt(
'setup',
Expand All @@ -610,7 +610,7 @@ public function getRequirements($skipModules = false)
)));

$set->add(new WebLibraryRequirement(array(
'condition' => ['icinga-php-thirdparty', '>=', '0.11.0'],
'condition' => ['icinga-php-thirdparty', '>=', '0.12.0'],
'alias' => 'Icinga PHP Thirdparty',
'description' => mt(
'setup',
Expand Down

0 comments on commit 2432d05

Please sign in to comment.