From 018c901e938cfa951bcd4b4d77739962f05a861c Mon Sep 17 00:00:00 2001 From: Alex Killing Date: Tue, 5 Nov 2024 17:04:11 +0100 Subject: [PATCH] Make call lazy and only init the stuff when used --- .../classes/class.ilBookingManagerAppEventListener.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;