feat: listen to user life cycle events
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -282,7 +282,11 @@ class PersonalService implements ServiceBaseInterface, ServiceCollectionMutableI
|
||||
throw new InvalidParameterException("Invalid: Collection identifier '$id' does not exist or does not belong to user '{$this->serviceUserId}'");
|
||||
}
|
||||
// destroy collection in store
|
||||
$this->store->collectionDestroyById($this->serviceTenantId, $this->serviceUserId, $id);
|
||||
$collection = $this->store->collectionFetch($this->serviceTenantId, $this->serviceUserId, $id);
|
||||
if ($collection === null) {
|
||||
throw new InvalidParameterException("Invalid: Collection identifier '$id' could not be retrieved");
|
||||
}
|
||||
$this->store->collectionDestroy($this->serviceTenantId, $this->serviceUserId, $collection);
|
||||
unset($this->serviceCollectionCache[$id]);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user