Skip to content

Commit 7b8362b

Browse files
AC-1120: Turn off the input limit for RESTful endpoints by default and create a CLI command to turn them on
1 parent 9418520 commit 7b8362b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Service Input Processor
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -36,7 +34,7 @@
3634
*/
3735
class ServiceInputProcessor implements ServicePayloadConverterInterface
3836
{
39-
const EXTENSION_ATTRIBUTES_TYPE = \Magento\Framework\Api\ExtensionAttributesInterface::class;
37+
private const EXTENSION_ATTRIBUTES_TYPE = \Magento\Framework\Api\ExtensionAttributesInterface::class;
4038

4139
/**
4240
* @var \Magento\Framework\Reflection\TypeProcessor

lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/TestService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
class TestService
1313
{
14-
const DEFAULT_VALUE = 42;
15-
const CUSTOM_ATTRIBUTE_CODE = 'customAttr';
14+
public const DEFAULT_VALUE = 42;
15+
public const CUSTOM_ATTRIBUTE_CODE = 'customAttr';
1616

1717
/**
1818
* @param int $entityId

0 commit comments

Comments
 (0)