Skip to content

Commit

Permalink
Make call lazy and only init the stuff when used
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 5, 2024
1 parent e7ebd7b commit 018c901
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 018c901

Please sign in to comment.