Skip to content

Commit 51d7724

Browse files
committed
AC-1271: Add rate limiting for payment information endpoint and mutation
1 parent 3ff797e commit 51d7724

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/QuoteGraphQl/Model/BackpressureRequestTypeExtractor.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Quote\Model\Backpressure\OrderLimitConfigManager;
1313
use Magento\QuoteGraphQl\Model\Resolver\PlaceOrder;
1414
use Magento\QuoteGraphQl\Model\Resolver\SetPaymentAndPlaceOrder;
15-
use ReflectionException;
1615

1716
/**
1817
* Identifies which quote fields need backpressure management
@@ -55,12 +54,9 @@ public function extract(Field $field): ?string
5554
*
5655
* @param string $class
5756
* @return string
58-
* @throws ReflectionException
5957
*/
6058
private function resolver(string $class): string
6159
{
62-
$reflectionClass = new \ReflectionClass($class);
63-
64-
return $reflectionClass->getName();
60+
return trim($class, '\\');
6561
}
6662
}

0 commit comments

Comments
 (0)