ServiceSlug
class ServiceSlug implements ServiceSlugInterface
Services related to ServiceSlugInterface
Properties
private EntityManagerInterface | $em | Stores EntityManager | |
private RouterInterface | $router | Stores Router |
Methods
__construct(EntityManagerInterface $em, RouterInterface $router)
No description
bool
exists(string $object, string $slug)
Checks if slug already exists
string|null
match(string $route, object $object, string $slug)
Checks if the slug provided in the url matches the product one or will provide the redirect url
string
slugify(string $object, string $text)
Checks unicity of slugged text against collection of $object ('Bundle:Entity')
Details
at line 35
__construct(EntityManagerInterface $em, RouterInterface $router)
at line 44
bool
exists(string $object, string $slug)
Checks if slug already exists
at line 63
string|null
match(string $route, object $object, string $slug)
Checks if the slug provided in the url matches the product one or will provide the redirect url
at line 79
string
slugify(string $object, string $text)
Checks unicity of slugged text against collection of $object ('Bundle:Entity')