nevi
Member
Hi!
I need to recalculate some data for deleted user in my addon. In callback of user_delete_clean_init i got params (\XF\Service\User\DeleteCleanUp $deleteService, array &$deletes)
How to get user id from $deleteService? $deleteService->userId is protected, and i have error:
An exception occurred: [Error] Cannot access protected property XF\Service\User\DeleteCleanUp::$userId in src/addons/Prokoni/Events/Listener.php
Little help?
Thanks!
I need to recalculate some data for deleted user in my addon. In callback of user_delete_clean_init i got params (\XF\Service\User\DeleteCleanUp $deleteService, array &$deletes)
How to get user id from $deleteService? $deleteService->userId is protected, and i have error:
An exception occurred: [Error] Cannot access protected property XF\Service\User\DeleteCleanUp::$userId in src/addons/Prokoni/Events/Listener.php
Little help?
Thanks!