feat: add GLPI 11 compatibility (v4.0.0) - #100
Conversation
giovanny07
commented
Mar 17, 2026
- Migrate classes from inc/ to src/ with PSR-4 namespace GlpiPlugin\Mailanalyzer
- Replace raw DB queries with Migration API in hook.php (fresh install + upgrade)
- Fix signed integer warning: tickets_id and mailcollectors_id now UNSIGNED
- Add composer.json for PSR-4 autoloading
- Replace legacy HTML config form with Bootstrap 5/Tabler native GLPI 11 UI
- Fix CSRF handling: form posts to front/save_config.php (not ajax/)
- Use Glpi\Plugin\Hooks constants in setup.php
- Initialize config defaults on install and first display
- Drop GLPI 10 support (use v3.2.x for GLPI 10)
- Migrate classes from inc/ to src/ with PSR-4 namespace GlpiPlugin\Mailanalyzer - Replace raw DB queries with Migration API in hook.php (fresh install + upgrade) - Fix signed integer warning: tickets_id and mailcollectors_id now UNSIGNED - Add composer.json for PSR-4 autoloading - Replace legacy HTML config form with Bootstrap 5/Tabler native GLPI 11 UI - Fix CSRF handling: form posts to front/save_config.php (not ajax/) - Use Glpi\Plugin\Hooks constants in setup.php - Initialize config defaults on install and first display - Drop GLPI 10 support (use v3.2.x for GLPI 10)
|
Hello @giovanny07 |
|
Hello @giovanny07
|
- Remove legacy inc/config.class.php and inc/mailcollector.class.php, fully superseded by src/Config.php and src/MailCollectorWrapper.php - Wire up templates/pages/config.html.twig via TemplateRenderer in src/Config.php instead of duplicating the form as inline HTML; drop dead Config::configUpdate() (never called) - Bump version to 4.1.0 (4.0.0 already released) - Add locales/mailanalyzer.pot translation template - Translate remaining Spanish comments to English
|
Hello @tomolimo, Thank you for the review! I've pushed a new commit addressing all 5 points:
Let me know if anything else needs adjusting. Regards, |
|
Hello @giovanny07 |
|
Hello @giovanny07 |
Reapplies the src/ PSR-4 migration and PR tomolimo#100 review fixes on top of the schema/version work done upstream in parallel on the old inc/-based code (widened message_id, dbversion-guarded migrations, version bumps to 4.0.1/4.0.2). Bumps plugin version to 4.1.0.
|
Done! |