@@ 93-95 (lines=3) @@ | ||
90 | ||
91 | $params = null; |
|
92 | if ($container->request->requestMethod === 'GET') { |
|
93 | if ($method === null || "get" === mb_strtolower($method)) { |
|
94 | $params = $container->request->get; |
|
95 | } |
|
96 | } elseif ($container->request->requestMethod === 'POST') { |
|
97 | if ($method === null || "post" === mb_strtolower($method)) { |
|
98 | $params = $container->request->post; |
|
@@ 96-100 (lines=5) @@ | ||
93 | if ($method === null || "get" === mb_strtolower($method)) { |
|
94 | $params = $container->request->get; |
|
95 | } |
|
96 | } elseif ($container->request->requestMethod === 'POST') { |
|
97 | if ($method === null || "post" === mb_strtolower($method)) { |
|
98 | $params = $container->request->post; |
|
99 | } |
|
100 | } elseif ($container->request->requestMethod === 'PUT') { |
|
101 | if ($method === null || "put" === mb_strtolower($method)) { |
|
102 | $params = $container->request->put; |
|
103 | } |
|
@@ 104-108 (lines=5) @@ | ||
101 | if ($method === null || "put" === mb_strtolower($method)) { |
|
102 | $params = $container->request->put; |
|
103 | } |
|
104 | } elseif ($container->request->requestMethod === 'DELETE') { |
|
105 | if ($method === null || "delete" === mb_strtolower($method)) { |
|
106 | $params = $container->request->delete; |
|
107 | } |
|
108 | } else { |
|
109 | $errorMsg = "Unsupported method is specified: " . $method; |
|
110 | throw new InvalidRequestException($errorMsg); |
|
111 | } |