Skip to content

Commit

Permalink
Add missing http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi committed Jul 12, 2024
1 parent cc749d8 commit 82d3490
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DataProvider/FormDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ class FormDataProvider implements DataProviderInterface
protected function getSubmittedData(ServerRequestInterface $request): array
{
switch (strtolower($request->getMethod())) {
case 'connect':
case 'get':
case 'head':
case 'options':
case 'trace':
return $request->getQueryParams();
case 'delete':
case 'patch':
case 'post':
case 'put':
$parsedBody = $request->getParsedBody();
false === is_array($parsedBody) && $parsedBody = [];

Expand Down

0 comments on commit 82d3490

Please sign in to comment.