fix: pass logger explicitly to BookingCreateTrait::handleApiError
This commit is contained in:
@@ -93,6 +93,7 @@ class Step4Controller extends AbstractController
|
||||
|
||||
if ($bookingResponse instanceof Notification) {
|
||||
$this->handleApiError(
|
||||
$this->logger,
|
||||
'Booking creation failed - API notification',
|
||||
['message' => $bookingResponse->message],
|
||||
$bookingResponse->message ?? 'Ein Fehler ist aufgetreten. Bitte versuchen es erneut.',
|
||||
@@ -108,6 +109,7 @@ class Step4Controller extends AbstractController
|
||||
}
|
||||
|
||||
$this->handleApiError(
|
||||
$this->logger,
|
||||
'Booking creation unsuccessful',
|
||||
['status' => $bookingResponse->status, 'message' => $bookingResponse->message],
|
||||
$errorMessage,
|
||||
@@ -148,6 +150,7 @@ class Step4Controller extends AbstractController
|
||||
return $this->redirectToRoute('app_booking_create_success');
|
||||
} catch (TimeoutException $e) {
|
||||
$this->handleApiError(
|
||||
$this->logger,
|
||||
'Booking creation timeout',
|
||||
[
|
||||
'exception' => $e->getMessage(),
|
||||
@@ -157,6 +160,7 @@ class Step4Controller extends AbstractController
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
$this->handleApiError(
|
||||
$this->logger,
|
||||
'Booking creation exception',
|
||||
[
|
||||
'exception' => $e->getMessage(),
|
||||
|
||||
Reference in New Issue
Block a user