private function serializeRequest(Request $request) { return $this->serializeLanguageParams($request->getLanguageTag(), $request->getLanguage(), $request->getScript(), $request->getRegion(), $request->getVariantsTag(), $request->getVariants(), $request->getExtensionsTag(), $request->getExtensions()); }