From c021e3e3a182c3de2250426b763d7d8427d0274e Mon Sep 17 00:00:00 2001 From: Wojdylak Date: Tue, 12 Dec 2023 11:19:47 +0100 Subject: [PATCH] Add prefix sylius_ to validation groups --- UPGRADE-1.13.md | 8 +- config/packages/_sylius.yaml | 26 +++--- .../config/validation/PromotionAction.xml | 90 +++++++++---------- .../config/validation/PromotionRule.xml | 78 ++++++++-------- 4 files changed, 101 insertions(+), 101 deletions(-) diff --git a/UPGRADE-1.13.md b/UPGRADE-1.13.md index 08f0e7a1b3..586058faa3 100644 --- a/UPGRADE-1.13.md +++ b/UPGRADE-1.13.md @@ -242,10 +242,10 @@ sylius_promotion: validation_groups: order_percentage_discount: - 'sylius' - - 'order_percentage_discount' + - 'sylius_order_percentage_discount' shipping_percentage_discount: - 'sylius' - - 'shipping_percentage_discount' + - 'sylius_shipping_percentage_discount' your_promotion_action: - 'sylius' - 'your_custom_validation_group' @@ -262,10 +262,10 @@ sylius_promotion: validation_groups: cart_quantity: - 'sylius' - - 'cart_quantity' + - 'sylius_cart_quantity' customer_group: - 'sylius' - - 'customer_group' + - 'sylius_customer_group' your_promotion_rule: - 'sylius' - 'your_custom_validation_group' diff --git a/config/packages/_sylius.yaml b/config/packages/_sylius.yaml index e4a53fe499..191d9a491a 100644 --- a/config/packages/_sylius.yaml +++ b/config/packages/_sylius.yaml @@ -27,45 +27,45 @@ sylius_promotion: validation_groups: order_percentage_discount: - 'sylius' - - 'order_percentage_discount' + - 'sylius_order_percentage_discount' shipping_percentage_discount: - 'sylius' - - 'shipping_percentage_discount' + - 'sylius_shipping_percentage_discount' order_fixed_discount: - 'sylius' - - 'order_fixed_discount' + - 'sylius_order_fixed_discount' unit_fixed_discount: - 'sylius' - - 'unit_fixed_discount' + - 'sylius_unit_fixed_discount' unit_percentage_discount: - 'sylius' - - 'unit_percentage_discount' + - 'sylius_unit_percentage_discount' promotion_rule: validation_groups: cart_quantity: - 'sylius' - - 'cart_quantity' + - 'sylius_cart_quantity' customer_group: - 'sylius' - - 'customer_group' + - 'sylius_customer_group' nth_order: - 'sylius' - - 'nth_order' + - 'sylius_nth_order' shipping_country: - 'sylius' - - 'shipping_country' + - 'sylius_shipping_country' has_taxon: - 'sylius' - - 'has_taxon' + - 'sylius_has_taxon' total_of_items_from_taxon: - 'sylius' - - 'total_of_items_from_taxon' + - 'sylius_total_of_items_from_taxon' contains_product: - 'sylius' - - 'contains_product' + - 'sylius_contains_product' item_total: - 'sylius' - - 'item_total' + - 'sylius_item_total' sylius_shop: product_grid: diff --git a/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionAction.xml b/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionAction.xml index 7432ff8e41..21573884c8 100644 --- a/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionAction.xml +++ b/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionAction.xml @@ -15,72 +15,74 @@ + - - + + - - + + - - + + - diff --git a/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionRule.xml b/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionRule.xml index 7fccd2e90c..ade7c1c0a9 100644 --- a/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionRule.xml +++ b/src/Sylius/Bundle/CoreBundle/Resources/config/validation/PromotionRule.xml @@ -15,163 +15,163 @@ - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + -