Skip to content

Prepare plugin for Sylius 2.3 and Symfony 8 - #504

Open
rust-le wants to merge 6 commits into
Sylius:2.2from
rust-le:feature/sylius-2.3-symfony-8
Open

rust-le wants to merge 6 commits into
Sylius:2.2from
rust-le:feature/sylius-2.3-symfony-8

Conversation

@rust-le

@rust-le rust-le commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Branch? 2.2
Bug fix? no
New feature? yes
Related tickets -

Adds support for Sylius 2.3 and Symfony 8.

  • Service definitions (plugin and Behat) converted from XML to PHP, as Symfony 8 no longer loads XML configs
  • The credit memo Gaufrette filesystem is registered as plain services instead of through knp_gaufrette bundle config, since knplabs/knp-gaufrette-bundle is no longer part of Sylius 2.3; knplabs/gaufrette is now required directly
  • Request::get() replaced with $request->attributes->get() and ConversionException::conversionFailed() replaced with a plain ConversionException, both removed in Symfony 8 / DBAL 4
  • Behat configuration migrated from YAML to PHP (behat.dist.php) and step annotations converted to attributes, so the same setup works on Behat 3 and Behat 4
  • The test application loads Sylius' Behat services from the PHP config when available (Sylius 2.3), falling back to XML on older versions
  • Dependencies allow Symfony 8 and Behat 4; the abandoned friends-of-behat/mink and friends-of-behat/suite-settings-extension are dropped, dmore/behat-chrome-extension is swapped for sylius-labs/behat-chrome-extension
  • Build matrix covers Sylius ~2.2.0 and ~2.3.0 on PHP 8.3/8.4 with Symfony 6.4 and 7.4, plus Sylius ~2.3.0 on Symfony 8 (PHP 8.4)

Behat 4 is pinned to 4.0.0-alpha1 next to ^3.22, the same as in Sylius 2.3.0: the stable 4.0.0 rejects step patterns that capture more arguments than the step method accepts, which some of Sylius' own step definitions still do. friends-of-behat/mink-extension has no stable Behat 4 compatible release yet, so it is pinned to 3.0.0-alpha1 next to ^2.7.

@rust-le
rust-le force-pushed the feature/sylius-2.3-symfony-8 branch 4 times, most recently from f042e98 to be0122c Compare August 13, 2026 13:35
@TheMilek
TheMilek changed the base branch from 2.1 to 2.2 September 29, 2026 06:40
@TheMilek
TheMilek force-pushed the feature/sylius-2.3-symfony-8 branch 3 times, most recently from 9a84bff to 5f25e44 Compare September 29, 2026 07:13
@TheMilek
TheMilek force-pushed the feature/sylius-2.3-symfony-8 branch 6 times, most recently from 55f643d to 8412b41 Compare September 29, 2026 13:07
@TheMilek
TheMilek force-pushed the feature/sylius-2.3-symfony-8 branch from 8412b41 to d0e323e Compare September 29, 2026 14:02
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.

2 participants