Closed Frolki1-Dev closed 2 years ago
But isn't payload from PUT (and PATCH?) usually found in BODY var instead of POST?
My fault, sorry. Normal you can fetch the inputs in PHP with php://input
. But in the mock it set in the hive with the key BODY
.
Now we can decide between:
php://input
Here is my code in the Controller: (It's in the __construct method)
I had a problem in my tests, that PUT and PATCH ignored the arguments that i passed.
With this pull request I fix this, that also on a PUT or PATCH request will pass the arguments in the _POST.