diff --git a/components/ILIAS/BookingManager/classes/class.ilBookingManagerAppEventListener.php b/components/ILIAS/BookingManager/classes/class.ilBookingManagerAppEventListener.php index 624a5f3b53ff..de3c29c33729 100644 --- a/components/ILIAS/BookingManager/classes/class.ilBookingManagerAppEventListener.php +++ b/components/ILIAS/BookingManager/classes/class.ilBookingManagerAppEventListener.php @@ -34,13 +34,11 @@ public static function handleEvent( ): void { global $DIC; - $user_event = $DIC->bookingManager()->internal()->domain()->userEvent(); - switch ($a_component) { case "Services/User": switch ($a_event) { case "deleteUser": - $user_event->handleDeletion((int) $a_parameter["usr_id"]); + $DIC->bookingManager()->internal()->domain()->userEvent()->handleDeletion((int) $a_parameter["usr_id"]); break; } break;