getPathInfo()); file_put_contents( $basePath . "-body.json", $request->getContent() ); file_put_contents( $basePath . "-header.json", json_encode($request->headers->all()) ); } }