Skip to content

Symfony 8 support #18760

@TheMilek

Description

@TheMilek

Summary

This issue tracks all work required to support Symfony 8.0 in Sylius. Symfony 8.0 was released on November 27, 2025, and requires PHP >=8.4.

References:


Blocking Sylius packages


Blocking third-party dependencies

Runtime

  • knplabs/knp-gaufrette-bundle — constrains symfony/config to ^5.0|^6.0|^7.0
  • payum/payum-bundle — constrains symfony/framework-bundle to ^4.4||^5.4||^6.0||^7.0
  • symfonycasts/dynamic-formsmain already supports ^8.0
  • doctrine/doctrine-bundle — v3.2.2 supports ^8.0 (requires bumping Sylius constraint from ^2.13 to ^3.2)

Dev


Packages to remove

  • symfony/proxy-manager-bridge — does not exist in Symfony 8 (max 6.4), replaced by native lazy proxies in PHP 8.4+
  • friendsofphp/proxy-manager-lts — related to the above

Doctrine DBAL upgrade

  • Symfony 8.0's doctrine-messenger requires doctrine/dbal ^4.3, Sylius currently requires ^3.9
  • doctrine/doctrine-bundle 3.x also requires doctrine/dbal ^4.0
  • DBAL 3.x → 4.x has its own breaking changes — likely a separate effort

XML configuration migration

Symfony 7.4 deprecates XmlFileLoader for service definitions and routing. It is removed in 8.0. The following XML files loaded via Symfony's XmlFileLoader need to be migrated to PHP or YAML:

  • service definition XML files (Resources/config/services/*.xml, Resources/config/*.xml)
  • All Extension classes using XmlFileLoader need to switch to PhpFileLoader or YamlFileLoader

Summarized in separated issue #18490 by @loic425 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions