From e4b444522ad0dc07b74614d1c5794f49bb67a846 Mon Sep 17 00:00:00 2001 From: Jonathan Lelievre Date: Wed, 27 Mar 2024 14:51:05 +0100 Subject: [PATCH] Set cart rule endpoint as experimental --- src/ApiPlatform/Resources/CartRule.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ApiPlatform/Resources/CartRule.php b/src/ApiPlatform/Resources/CartRule.php index 1cbe27c..06a26bf 100644 --- a/src/ApiPlatform/Resources/CartRule.php +++ b/src/ApiPlatform/Resources/CartRule.php @@ -30,7 +30,11 @@ operations: [ new CQRSUpdate( uriTemplate: '/cart-rule', - CQRSCommand: EditCartRuleCommand::class + CQRSCommand: EditCartRuleCommand::class, + scopes: [ + 'cart_rule_write', + ], + experimentalOperation: true, ), ], )]