wip: finalize offer layout
This commit is contained in:
1 parent
e7bfb19ac9
commit
a1751f699b
20 files changed
+487
-541
No files matched your search
@@ -12,6 +12,7 @@ use App\Entity\Groups\AdditionalService;
|
||||
use App\Entity\Groups\BoardService;
|
||||
use App\Form\Model\AccommodationBookingDto;
|
||||
use App\Model\AccommodationBookingQueryParams;
|
||||
use App\Model\CmsHotelData;
|
||||
use App\Model\InquiryStatus;
|
||||
use App\Repository\Groups\AccommodationPriceRepository;
|
||||
use App\Repository\Groups\AccommodationRepository;
|
||||
@@ -104,16 +105,10 @@ class AccommodationBookingService
|
||||
* Fetches hotel details from the CMS for display in the booking flow — name, images,
|
||||
* address, descriptive text blocks, amenity icons, and the surrounding region's info
|
||||
* (name, coordinates, webcam, ski area text, stats, images).
|
||||
*
|
||||
* @return array<string, mixed>|null null on CMS error or missing code, see
|
||||
* {@see CmsDataProvider::getHotelDetails()} for the shape
|
||||
*/
|
||||
public function loadHotelCmsData(Accommodation $accommodation): ?array
|
||||
public function loadHotelCmsData(Accommodation $accommodation): ?CmsHotelData
|
||||
{
|
||||
$code = $accommodation->getEffectiveCmsCode();
|
||||
$data = $this->cmsDataProvider->getHotelDetails($code);
|
||||
|
||||
return isset($data['success']) && false === $data['success'] ? null : $data;
|
||||
return $this->cmsDataProvider->getHotelDetails($accommodation->getEffectiveCmsCode());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user