Skip to content

Commit

Permalink
deprecate form format
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmok committed Mar 23, 2024
1 parent 1d40107 commit 34f5a4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Factory/InputFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function createFromRequest(Request $request, string $type): iterable
$data = $request->getContent();
$format = $request->getContentTypeFormat();
if (Input::INPUT_FORM_FORMAT === $format) {
@trigger_error("The format 'form' is deprecated and will be removed in version 2.0. Use 'symfony/form' component instead.", \E_USER_DEPRECATED);
$data = json_encode($request->request->all());
$format = Input::INPUT_JSON_FORMAT;
}
Expand Down

0 comments on commit 34f5a4d

Please sign in to comment.