Skip to content

Symfony 8 support.#373

Closed
AdamReece-WebBox wants to merge 5 commits intowilldurand:masterfrom
AdamReece-WebBox:compat/symfony-8.0
Closed

Symfony 8 support.#373
AdamReece-WebBox wants to merge 5 commits intowilldurand:masterfrom
AdamReece-WebBox:compat/symfony-8.0

Conversation

@AdamReece-WebBox
Copy link

Amendments for Symfony 8 support:

  • Converted configurations from XML to PHP format using this tool: https://github.com/GromNaN/symfony-config-xml-to-php/
  • Retained comments from XML configurations.
  • Changed extension class for dependency injection to use PhpFileLoader instead of XmlFileLoader.
  • Removed XML configurations.

Test suite results:

PHPUnit 8.5.50 by Sebastian Bergmann and contributors.

Testing BazingaJsTranslationBundle Test Suite
[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
[error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at Controller.php line 122
[info] Matched route "bazinga_jstranslation_js".
[error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at Controller.php line 122
[info] Matched route "bazinga_jstranslation_js".
[error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at Controller.php line 122
.[info] Matched route "bazinga_jstranslation_js".
[error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at Controller.php line 122
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
.[info] Matched route "bazinga_jstranslation_js".
............                                     29 / 29 (100%)

Time: 3.86 seconds, Memory: 16.00 MB

OK (29 tests, 127 assertions)

Unsure if the 4 NotFoundHttpException instances are from this change. When running the same test on master it failed entirely due to XmlFileLoader no longer being available.

@AdamReece-WebBox AdamReece-WebBox marked this pull request as ready for review December 17, 2025 15:14
Copy link
Contributor

@stof stof left a comment

Choose a reason for hiding this comment

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

This requires bumping the min version of Symfony being supported though.

Symfony 4.4 does support the PHP DSL for config files.

@andzelikakustra
Copy link

Hello :) Can we expect compatibility with Symfony 8 in the near future?

@AdamReece-WebBox
Copy link
Author

Hello :) Can we expect compatibility with Symfony 8 in the near future?

I completely forgot about this. The PR had some feedback to acknowledge.

@AdamReece-WebBox
Copy link
Author

This requires bumping the min version of Symfony being supported though.

Symfony 4.4 does support the PHP DSL for config files.

It looks like 4.4 is already the minimum version supported. Does this just require 8.0 being added to the Composer package requirements?

    "require": {
        "php": ">=7.4",
        "symfony/framework-bundle": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/finder": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/console": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/intl": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/translation":  "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/twig-bundle": "~4.4|~5.0|~6.0|~7.0|~8.0"
    },
    "require-dev": {
        "symfony/asset": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/filesystem": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/yaml": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/browser-kit": "~4.4|~5.0|~6.0|~7.0|~8.0",
        "symfony/phpunit-bridge": "^5.0|^6.0|~7.0|~8.0",
        "phpunit/phpunit": "^4.8|~5.7|~6.5|~8"
    },

@stof
Copy link
Contributor

stof commented Jan 27, 2026

There is a typo in my previous message. It should read "does not support"

@Wiktor6
Copy link

Wiktor6 commented Feb 4, 2026

@AdamReece-WebBox @stof it there any chance to update this PR and merge? :)

@andzelikakustra
Copy link

Hello, is there a chance for acceptance and merge? @AdamReece-WebBox @stof

@stof
Copy link
Contributor

stof commented Feb 11, 2026

I don't have write access to this repo, so I cannot merge PRs. The maintainer is @monteiro.

I'm helping with reviews on this bundle because I know it well and I know Symfony quite well (and because I'm using it at work, so I'm interested in getting Symfony 8 support as well).

@AdamReece-WebBox
Copy link
Author

This might need squashing first. I did try this for commit 4e9497d, not sure if that's done right.

…gurations.

- 5.0 changed to 5.4
- Added "symfony/dependency-injection"
@monteiro
Copy link
Collaborator

monteiro commented Feb 23, 2026

Hi @AdamReece-WebBox , thank you very much for your PR, and sorry for taking it so long to answer.
I have fixed this PR: #374 and also dropped Symfony
4.4 and some PHP versions.

Let me know if I forgot anything!

@monteiro monteiro closed this Feb 23, 2026
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.

5 participants