No description
Find a file
Rafał Jaskulski caf3fed403
Fix twice calculation rating review (#18567)
This is connected with https://github.com/Sylius/Sylius/pull/18574
| Q               | A
|-----------------|-----
| Branch?         | 1.14 
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | https://github.com/Sylius/Sylius/issues/16120
| License         | MIT


The \Sylius\Bundle\ReviewBundle\EventListener\ReviewChangeListener
(registered as Doctrine event listener) already handles rating
recalculation for all review changes (postPersist, postUpdate,
preRemove), making the
  state machine callback redundant.

  Solution

Disable the sylius_update_rating callback by adding disabled: true
instead of removing it entirely.

  Why disabled: true instead of removal?

1. No BC break - the updateFromReview() method called by this callback
remains intact, preserving the ReviewableRatingUpdaterInterface and
service definitions
2. Flexibility - users who rely on this callback (e.g., for custom
priority ordering with their own callbacks) can re-enable it in their
configuration with disabled: false
3. Transparency - the callback definition remains visible in
configuration, documenting what was disabled and why, which helps with
debugging and understanding the system's
  history
2025-11-26 10:57:38 +01:00
.bunnyshell Merge branch '1.12' into 1.13 2024-05-22 14:54:12 +02:00
.docker
.github Remove legacy_postgresql_setup parameter from BuildTestAppAction 2025-10-21 12:37:48 +02:00
adr Add more examples 2024-10-08 16:41:38 +02:00
app [Maintenance] Remove redundant Sylius version information in deprecation messages 2023-09-19 09:03:41 +02:00
bin
config fix: fix dev firewall order 2025-05-05 15:27:33 +02:00
docs Update docs/cookbook/configuration/how-to-remove-sylius-mollie-plugin.rst 2025-05-07 15:36:38 +02:00
etc [Maintenance] Update .gitattributes 2024-02-02 15:07:36 +01:00
features Add channel eligibility validation during order completion 2025-11-24 17:39:32 +01:00
public
src Fix twice calculation rating review (#18567) 2025-11-26 10:57:38 +01:00
templates [Swagger] Fix post-token-obtaining dynamic API authorization 2024-03-12 14:43:09 +01:00
tests Fix assertion wrong eligible checker 2025-10-08 12:26:33 +02:00
translations
var
.babelrc
.dockerignore
.editorconfig
.env
.env.test
.env.test_cached
.eslintrc.js
.gitattributes [Maintenance] Update .gitattributes 2024-02-02 15:07:36 +01:00
.gitignore Resolve conflicts between 1.12 and 1.13 2023-12-22 13:53:00 +01:00
.npmignore
.readthedocs.yaml [Documentation] Add configuration file for Read the Docs 2024-01-26 09:58:59 +01:00
.symfony.insight.yaml
AUDIT-IGNORE.md Add md file with description ignored CVE and fix format 2025-11-17 13:05:07 +01:00
behat.yml.dist Fix Panther Chrome arguments configuration 2025-10-23 12:51:21 +02:00
CHANGELOG-1.0.md
CHANGELOG-1.1.md
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md
CHANGELOG-1.7.md
CHANGELOG-1.8.md
CHANGELOG-1.9.md
CHANGELOG-1.10.md
CHANGELOG-1.11.md
CHANGELOG-1.12.md Generate changelog for v1.12.19 2024-07-17 10:09:53 +02:00
CHANGELOG-1.13.md Generate changelog for v1.13.11 2025-02-26 12:00:17 +01:00
CHANGELOG-1.14.md Generate changelog for v1.14.12 2025-10-22 14:27:48 +02:00
composer-require-checker.json Fix composerRequireChecker 2024-10-29 10:44:59 +01:00
composer.json Add md file with description ignored CVE and fix format 2025-11-17 13:05:07 +01:00
CONFLICTS.md Add conflict for broken Doctrine ORM versions 2025-10-29 08:58:38 +01:00
docker-compose.test.yml
docker-compose.yml
ecs.php [ECS] Add the NullableTypeDeclarationForDefaultNullValueFixer rule 2024-04-16 10:23:35 +02:00
gulpfile.babel.js
LICENSE New year 2024 2024-01-04 14:21:06 +01:00
Makefile Remove Psalm 2023-12-04 11:10:34 +01:00
monorepo-builder.php
package.json Bump up Node.js only to supported LTS versions (18 and 20) 2024-02-09 13:52:53 +01:00
phparkitect.php [Maintenance] Ignore abstract classes in spec arkitect rule 2024-01-26 14:57:30 +01:00
phpspec.yml.dist
phpstan-baseline.neon Add phpstan ignores 2024-10-29 10:44:59 +01:00
phpstan.neon.dist [Maintenance] Fix LazyOption repository template covariants 2024-09-06 13:44:46 +02:00
phpunit.xml.dist Refactor checking whether the channel can be deleted 2023-11-06 16:02:12 +01:00
README.md Merge branch '1.12' into 1.13 2024-11-21 15:01:17 +01:00
rector.php
RoboFile.php Extract StateMachine abstraction into its own package 2024-01-15 15:40:07 +01:00
SECURITY.md
symfony.lock Replace the oro/doctrine-extensions dependency with a custom Cast Doctrine ORM function 2025-05-07 09:04:50 +02:00
UPGRADE-1.0.md
UPGRADE-1.1.md
UPGRADE-1.2.md
UPGRADE-1.3.md
UPGRADE-1.4.md
UPGRADE-1.5.md
UPGRADE-1.6.md
UPGRADE-1.7.md
UPGRADE-1.8.md
UPGRADE-1.9.md
UPGRADE-1.10.md
UPGRADE-1.11.md
UPGRADE-1.12.md Note order token length parametrization 2024-06-14 10:04:37 +02:00
UPGRADE-1.13.md [Review] Change ReviewChangeListener doctrine event from postRemove to preRemove 2024-10-08 10:33:15 +02:00
UPGRADE-1.14.md Fix after review 2025-11-26 10:53:58 +01:00
UPGRADE-API-1.8.md
UPGRADE-API-1.9.md
UPGRADE-API-1.10.md
UPGRADE-API-1.11.md
UPGRADE-API-1.12.md [API] Add note about disabling adjustment GET endpoint to UPGRADE file 2024-07-17 08:14:09 +02:00
UPGRADE-API-1.13.md [API] Add default sorting order for customers admin GET endpoint 2024-10-08 10:34:53 +02:00
UPGRADE-API-1.14.md [API] Deprecate legacy_error_handling and serialization_groups configuration parameters 2024-10-23 15:36:42 +02:00
UPGRADE-FROM-1.12-WITH-PRICE-HISTORY-PLUGIN-TO-1.13-LEGACY.md
UPGRADE-FROM-1.12-WITH-PRICE-HISTORY-PLUGIN-TO-1.13.md
webpack.config.js
yaml-standards.yaml

Sylius is an Open Source eCommerce framework on top of Symfony.

The highest quality of code, strong testing culture, built-in Agile (BDD) workflow and exceptional flexibility make it the best solution for applications tailored to your business requirements. Powerful REST API allows for easy integrations and creating unique customer experience on any device.

We're using full-stack Behavior-Driven-Development, with phpspec and Behat.

Enjoy being an eCommerce Developer again!

⚙️ Installation

Install Sylius with Composer (see requirements details).

Follow the Getting started with Sylius tutorial!

📖 Documentation

Documentation is available at docs.sylius.com.

Sylius Plus

Sylius Plus offers modular features like OnePageCheckout and a B2B suite, alongside advanced capabilities such as multi-store management, partial order fulfillment, smooth returns handling, a loyalty system and multi-source inventory. Pick and choose the modules you need to supercharge your eCommerce projects effortlessly.

🤝 Community

Get Sylius support on Slack or Stack Overflow or get professional SLA-backed support and Project Success Assistance with Sylius Plus license! Learn more.

Stay updated by following our Twitter and Facebook.

Would like to help us and build the most developer-friendly eCommerce framework? Start from reading our Contributing Guide!

👮 Security issues

If you think that you have found a security issue in Sylius, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to security@sylius.com.

📦 Plugins and Extensions: Sylius Store

You can find Sylius plugins on our Sylius Store which is a Marketplace with Sylius extensions.

Or search for packages marked as sylius-plugin on Packagist.

📃 License

Sylius is completely free and released under the MIT License.

✍️ Authors

Sylius was originally created by Paweł Jędrzejewski.

Kudos to all Sylius contributors 🙏

... and others!

See the full list of contributors from our awesome community.