Skip to content

[REFACTOR] Move master.ini templates and their reader to Init component#11766

Open
chfsx wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
srsolutionsag:refactor/master-ini-to-init
Open

[REFACTOR] Move master.ini templates and their reader to Init component#11766
chfsx wants to merge 1 commit into
ILIAS-eLearning:trunkfrom
srsolutionsag:refactor/master-ini-to-init

Conversation

@chfsx

@chfsx chfsx commented Jul 17, 2026

Copy link
Copy Markdown
Member

The ilias.master.ini.php / client.master.ini.php templates and their sole consumer ilIniFilesPopulatedObjective lived in the Setup component (formerly setup_). They seed the ilias.ini.php / client.ini.php written during installation - an Init/environment concern - so both the templates and the objective belong in the Init component.

The ilias.master.ini.php / client.master.ini.php templates and their sole
consumer ilIniFilesPopulatedObjective lived in the Setup component
(formerly setup_). They seed the ilias.ini.php / client.ini.php written
during installation - an Init/environment concern - so both the templates
and the objective belong in the Init component.

Moved:
- components/ILIAS/Setup/{ilias,client}.master.ini.php
  -> components/ILIAS/Init/resources/
- components/ILIAS/Setup/classes/class.ilIniFilesPopulatedObjective.php
  -> components/ILIAS/Init/classes/

The objective now reads its templates same-component via
dirname(__DIR__) . '/resources/...'. All other __DIR__ based paths keep
working because Init/classes has the same nesting depth as Setup/classes.
The class stays in the global namespace, so its many callers across
components resolve unchanged via the classmap. composer.json classmap
excludes updated to the new template locations.
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