Skip to content

Replace incubator module with icinga-php-legacy library#5484

Merged
lippserd merged 1 commit intomainfrom
icinga-php-legacy
Mar 26, 2026
Merged

Replace incubator module with icinga-php-legacy library#5484
lippserd merged 1 commit intomainfrom
icinga-php-legacy

Conversation

@lippserd
Copy link
Copy Markdown
Member

@lippserd lippserd commented Mar 25, 2026

The icinga-php-legacy library is the successor to the standalone icingaweb2-module-incubator module. Modules such as director and vspheredb that still declare incubator as a dependency should load without a separate incubator installation once icinga-php-legacy is present.

Module::getRequiredLibraries now maps an incubator module requirement to an icinga-php-legacy library requirement when that library is available, and getRequiredModules drops incubator from the list so the dependency check does not fail. Manager::loadModule skips calling register() for the incubator module under the same condition, folding that guard into the existing ipl/reactbundle exclusion to avoid a double-registration.

https://github.com/Icinga/icinga-php-legacy replaces https://github.com/Icinga/icingaweb2-module-incubator.

@lippserd lippserd added this to the 2.13 milestone Mar 25, 2026
@cla-bot cla-bot bot added the cla/signed label Mar 25, 2026
@lippserd lippserd requested a review from Jan-Schuppik March 25, 2026 15:51
@lippserd lippserd force-pushed the icinga-php-legacy branch from b97e9d2 to 96afe5d Compare March 25, 2026 15:54
Jan-Schuppik
Jan-Schuppik previously approved these changes Mar 26, 2026
Copy link
Copy Markdown
Contributor

@Jan-Schuppik Jan-Schuppik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the usage of Icinga\Application\Libraries, everything works as expected


use Icinga\Application\ApplicationBootstrap;
use Icinga\Application\Icinga;
use Icinga\Application\Libraries;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I missing something here, or is the usage of Icinga\Application\Libraries superfluous

The `icinga-php-legacy` library is the successor to the standalone
`icingaweb2-module-incubator` module. Modules such as director and
vspheredb that still declare `incubator` as a dependency should load
without a separate incubator installation once `icinga-php-legacy` is
present.

`Module::getRequiredLibraries` now maps an `incubator` module requirement
to an `icinga-php-legacy` library requirement when that library is
available, and `getRequiredModules` drops `incubator` from the list so
the dependency check does not fail. `Manager::loadModule` skips calling
`register()` for the incubator module under the same condition, folding
that guard into the existing `ipl`/`reactbundle` exclusion to avoid a
double-registration.
@lippserd lippserd force-pushed the icinga-php-legacy branch from 675aa67 to 9db25df Compare March 26, 2026 14:42
@lippserd lippserd merged commit eb378ca into main Mar 26, 2026
13 checks passed
@lippserd lippserd deleted the icinga-php-legacy branch March 26, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants