Canonical
class Canonical (View source)
Methods
__construct(Config $config, UrlGeneratorInterface $urlGenerator, RequestStack $requestStack, string $defaultLocale)
No description
void
init()
No description
string|null
get(string|null $route = null, array $params = [])
No description
void
setUrlGenerator(UrlGeneratorInterface $urlGenerator)
Override the initial UrlGeneratorInterface
UrlGeneratorInterface
getUrlGenerator()
No description
string
getScheme()
No description
void
setScheme(string $scheme)
Override the scheme
int|null
getPort()
No description
void
setPort(int|null $port)
No description
string
getHost()
No description
void
setHost(string $host)
No description
string
getPath()
No description
void
setPath(string|null $route = null, array $params = [])
No description
string|null
generateLink(string|null $route, array|null $params, $canonical = false)
No description
Details
__construct(Config $config, UrlGeneratorInterface $urlGenerator, RequestStack $requestStack, string $defaultLocale)
void
init()
string|null
get(string|null $route = null, array $params = [])
void
setUrlGenerator(UrlGeneratorInterface $urlGenerator)
Override the initial UrlGeneratorInterface
UrlGeneratorInterface
getUrlGenerator()
string
getScheme()
void
setScheme(string $scheme)
Override the scheme