Skip to content

Add Contao 6 support - #35

Merged
markocupic merged 1 commit into
5.4.xfrom
contao-6-support
Oct 10, 2026
Merged

markocupic merged 1 commit into
5.4.xfrom
contao-6-support

Conversation

@markocupic

Copy link
Copy Markdown
Owner

Summary

Adds Contao 6 support. The bundle already required Contao 5.7, so there was no Contao 4 code to remove; it now requires ^5.7 || ^6.0.

Tested in CI against Contao 5.7.14 (lowest), 5.7.15 and 6.0.4 (Symfony 7.4 / 8.1) on PHP 8.3–8.5. All bundle classes also load without errors under Contao 6 and Symfony 8. I checked this with a temporary CI step that has since been removed.

The code itself needed no changes for Contao 6:

  • The BE_MOD key callbacks (renderAppAction, appMountAction, importAction) and the javascript/stylesheet module assets are still supported by the Contao 6 back end.
  • The rest of the code already uses the Contao 5 APIs.

Changes

  • Dependencies:
    • contao/core-bundle ^5.7 || ^6.0.
    • The Symfony components that are used directly are now declared explicitly (^6.4 || ^7.0 || ^8.0), as are doctrine/dbal and twig/twig.
    • Removed phpunit/phpunit and symfony/phpunit-bridge from require-dev. PHPUnit comes with contao/test-case.
    • type is now contao-bundle.
  • PHPUnit: Runs from the root, using a simplified phpunit.xml.dist. tools/phpunit is removed.
  • Tests: WidgetFactoryTest uses stubs instead of mocks without expectations. This removes the 3 PHPUnit 12 notices.
  • CI:
    • Coding style on PHP 8.4.
    • Tests on PHP 8.3–8.5, plus --prefer-lowest.
  • ECS: Fixed the file header of the config, which said "Calendar Event Booking Bundle".
  • README: New "Voraussetzungen" (requirements) section.

Note

PR #34 (Sioweb, "Add delimitter and enclosure") also targets 5.4.x. It touches only one file, so it should not conflict with this PR.

Suggested release: 5.5.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jb7ViNYJwLjr2Y34g8aAoK


Generated by Claude Code

- Require contao/core-bundle ^5.7 || ^6.0 and Symfony ^6.4 || ^7.0 || ^8.0
- Declare the directly used Symfony components, Doctrine DBAL and Twig
- Run PHPUnit from the root and remove tools/phpunit
- Use stubs instead of mocks without expectations (PHPUnit 12 notices)
- Modernize the CI workflow and fix the ECS config header

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jb7ViNYJwLjr2Y34g8aAoK
@markocupic
markocupic merged commit 726afce into 5.4.x Oct 10, 2026
11 checks passed
@markocupic
markocupic deleted the contao-6-support branch October 10, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant