feat: inquiry bookings

This commit is contained in:
Björn Fromme
2025-10-09 18:52:23 +02:00
parent 989f599b54
commit 4939a1a9ad
11 changed files with 360 additions and 4 deletions
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace App\Controller\Booking;
use App\BusProNet\XmlLoader\AgencyLoader;
use App\Exception\BookingNotPossibleException;
use App\Exception\HotelNotFoundException;
use App\Exception\HotelNotInTravelException;
use App\Exception\NoRoomsAvailableException;
@@ -64,6 +65,8 @@ class CreateInitController extends AbstractController
throw $this->createNotFoundException(sprintf('Hotel ID %d is not available for travel ID %d', $hotelId, $dateId));
} catch (NoRoomsAvailableException $e) {
throw $this->createNotFoundException('No rooms available for this travel.');
} catch (BookingNotPossibleException $e) {
throw $this->createNotFoundException('Booking is not possible for this travel (Buchungsstop).');
}
}