class DynamicUrlMatcher extends UrlMatcher (View source)

UrlMatcher which tries to grab Node and Translation informations for a route.

Properties

protected EntityManager $em
protected Theme $theme
protected NodeRepository $repository
protected Stopwatch $stopwatch
protected LoggerInterface $logger
protected bool $preview
protected ThemeResolver $themeResolver

Methods

__construct(RequestContext $context, EntityManager $em, ThemeResolver $themeResolver, Stopwatch $stopwatch = null, LoggerInterface $logger = null, bool $preview = false)

No description

parseTranslation(array $tokens)

Parse translation from URL tokens.

Details

__construct(RequestContext $context, EntityManager $em, ThemeResolver $themeResolver, Stopwatch $stopwatch = null, LoggerInterface $logger = null, bool $preview = false)

Parameters

RequestContext $context
EntityManager $em
ThemeResolver $themeResolver
Stopwatch $stopwatch
LoggerInterface $logger
bool $preview

protected Translation parseTranslation(array $tokens)

Parse translation from URL tokens.

Parameters

array $tokens &$tokens

Return Value

Translation