deprecate preferences repo get

This commit is contained in:
Yuri Kuznetsov
2024-11-11 10:11:22 +02:00
parent 2753400b35
commit 10ab5332cd
@@ -111,6 +111,10 @@ class Preferences implements Repository,
return $entity;
}
/**
* @deprecated Use `getById`.
* @todo Remove in v10.0.
*/
public function get(?string $id = null): ?Entity
{
if ($id === null) {
@@ -314,7 +318,7 @@ class Preferences implements Repository,
unset($this->data[$userId]);
}
$entity = $this->get($userId);
$entity = $this->getById($userId);
if ($entity) {
return $entity->getValueMap();