Moved process of sluggifying custom slug to a filter

This commit is contained in:
Alejandro Celaya
2019-02-03 08:17:22 +01:00
parent 594e7da256
commit 772494f46f
7 changed files with 44 additions and 81 deletions

View File

@@ -150,12 +150,4 @@ final class ShortUrlMeta
{
return $this->findIfExists;
}
public function withCustomSlug(string $customSlug): self
{
$clone = clone $this;
$clone->customSlug = $customSlug;
return $clone;
}
}