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)

Parameters

EntityManagerInterface $em
RouterInterface $router

at line 44
bool exists(string $object, string $slug)

Checks if slug already exists

Parameters

string $object
string $slug

Return Value

bool

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

Parameters

string $route
object $object
string $slug

Return Value

string|null

at line 79
string slugify(string $object, string $text)

Checks unicity of slugged text against collection of $object ('Bundle:Entity')

Parameters

string $object
string $text

Return Value

string