Updated to shlink-common with support for proxies for entities with public readonly props

This commit is contained in:
Alejandro Celaya
2023-01-16 23:41:14 +01:00
parent d8add9291f
commit c1b7c6ba6c
15 changed files with 21 additions and 26 deletions

View File

@@ -51,7 +51,7 @@ class DomainService implements DomainServiceInterface
$repo = $this->em->getRepository(Domain::class);
$groups = group(
$repo->findDomains($apiKey),
fn (Domain $domain) => $domain->authority() === $this->defaultDomain ? 'default' : 'domains',
fn (Domain $domain) => $domain->authority === $this->defaultDomain ? 'default' : 'domains',
);
return [first($groups['default'] ?? []), $groups['domains'] ?? []];