Skip to content

[FIX] Language: 48669: Install plugins with cli/setup.php - #12380

Closed
c-knof wants to merge 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/48669-setup-language-logger
Closed

c-knof wants to merge 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/48669-setup-language-logger

Conversation

@c-knof

@c-knof c-knof commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

https://mantis.ilias.de/view.php?id=48669

Since the Logging refactoring, $DIC->logger() needs logging.factory, which the $DIC built by the setup objectives lacks. ilLanguage now falls back to the NullLogger in that case, and the fake ilLoggerFactory/ilObjUser in ilPluginLanguageUpdatedObjective are adapted to the current classes.

`ilLanguage` uses the `NullLogger` when `ilLoggerFactory` or
`logging.factory` is not defined in `$DIC`, as in the setup objectives
that build their own `$DIC`.

The fake `ilLoggerFactory` in `ilPluginLanguageUpdatedObjective` drops the
dead `getRootLogger()` override. Its fake `ilObjUser` returns the language
via `getLanguage()`, as `ilObjUser` no longer has `$prefs`.
@c-knof c-knof self-assigned this Nov 5, 2026
@c-knof c-knof added bugfix php Pull requests that update Php code labels Nov 5, 2026
@c-knof c-knof closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant