Sortie du snippet Symfony "Récupérer le corps JSON d'une requête en tant que tableau avec Symfony"

Environnement :

  • Strangebuzz Snippet VM : 6.4.2
  • PHP : 8.3
  • Symfony : 6.4.6

Sortie du code exécuté :

Request body is empty.

New request body is not empty and valid:
array(1) {
  ["foo"]=>
  string(3) "bar"
}