Skip to content

Commit 82e300a

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-93969: Declaring allowed HTTP methods for controllers
1 parent de824cd commit 82e300a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/CancelTest.php

Whitespace-only changes.

lib/internal/Magento/Framework/App/Request/HttpMethodMap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
namespace Magento\Framework\App\Request;
1010

1111
/**
12-
* Map of HTTP methods and interfaces that an action implements
13-
* in order to process them.
12+
* Map of HTTP methods and interfaces that an action implements in order to process them.
1413
*/
1514
class HttpMethodMap
1615
{
@@ -28,6 +27,8 @@ public function __construct(array $map)
2827
}
2928

3029
/**
30+
* Filter given map.
31+
*
3132
* @param array $map
3233
* @throws \InvalidArgumentException
3334
*

lib/internal/Magento/Framework/App/Request/HttpMethodValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function __construct(
4343
}
4444

4545
/**
46+
* Create exception when invalid HTTP method used.
47+
*
4648
* @param Http $request
4749
* @param ActionInterface $action
4850
* @throws InvalidRequestException

0 commit comments

Comments
 (0)