Skip to content

Commit ce424ae

Browse files
committed
docs: update UPGRADE-2.3.md to reflect changes in after-pay redirect route configuration
1 parent 2345d2f commit ce424ae

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

UPGRADE-2.3.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@
4444
(`identity_generation_preferences` for `PostgreSQLPlatform`) to keep the database schema backward compatible
4545
with existing installations.
4646

47+
3. The `_sylius: redirect:` block has been removed from the `sylius_shop_order_pay` route definition.
48+
49+
Previously, `PayumPayResponseProvider` read the after-pay redirect route at runtime from the routing metadata:
50+
51+
```yaml
52+
# ShopBundle/Resources/config/routing/order.yml (removed)
53+
sylius_shop_order_pay:
54+
defaults:
55+
_sylius:
56+
redirect:
57+
route: sylius_shop_order_after_pay
58+
```
59+
60+
The redirect route is now resolved from the `sylius_shop` bundle configuration at compile time.
61+
If you customized the after-pay redirect route by overriding this routing parameter, use the bundle configuration instead:
62+
63+
```yaml
64+
sylius_shop:
65+
order_pay:
66+
after_pay_route: sylius_shop_order_after_pay
67+
after_pay_route_parameters: []
68+
```
69+
4770
## Dependencies
4871

4972
1. The `behat/transliterator` package has been **deprecated** and will be removed in Sylius 3.0.

0 commit comments

Comments
 (0)