mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 15:23:12 +08:00
Moved process of sluggifying custom slug to a filter
This commit is contained in:
@@ -150,12 +150,4 @@ final class ShortUrlMeta
|
||||
{
|
||||
return $this->findIfExists;
|
||||
}
|
||||
|
||||
public function withCustomSlug(string $customSlug): self
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->customSlug = $customSlug;
|
||||
|
||||
return $clone;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user