class NodeUrlMatcher extends DynamicUrlMatcher (View source)

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

Properties

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

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.

match($pathinfo)

[email protected]}

array|bool
matchNode(string $decodedUrl)

No description

parseFromUrlAlias(array $tokens)

Parse Node from UrlAlias.

parseNode(array $tokens, Translation $translation)

Parse URL searching nodeName.

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

match($pathinfo)

[email protected]}

Parameters

$pathinfo

protected array|bool matchNode(string $decodedUrl)

Parameters

string $decodedUrl

Return Value

array|bool

protected Node parseFromUrlAlias(array $tokens)

Parse Node from UrlAlias.

Parameters

array $tokens &$tokens

Return Value

Node

protected Node parseNode(array $tokens, Translation $translation)

Parse URL searching nodeName.

Cannot use securityAuthorizationChecker here as firewall has not been hit yet.

Parameters

array $tokens &$tokens
Translation $translation

Return Value

Node