feat: inquiry bookings

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 2d9cb2c0b9
commit 023ecdebc9
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).');
}
}