mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Added test for DomainRedirectCommand
This commit is contained in:
@@ -67,7 +67,7 @@ class DomainService implements DomainServiceInterface
|
||||
|
||||
public function getOrCreate(string $authority): Domain
|
||||
{
|
||||
$domain = $this->findByAuthority($authority) ?? new Domain($authority);
|
||||
$domain = $this->findByAuthority($authority) ?? Domain::withAuthority($authority);
|
||||
|
||||
$this->em->persist($domain);
|
||||
$this->em->flush();
|
||||
|
||||
Reference in New Issue
Block a user