RequestMatcherInterface|UrlMatcherInterface
public function getMatcher() {
/* we may not set the context in DynamicRouter::setContext as this
* would lead to symfony cache warmup problems.
* a request matcher does not need the request context separately as it
* can get it from the request.
*/
if ($this->matcher instanceof RequestContextAwareInterface) {
$this->matcher
->setContext($this
->getContext());
}
return $this->matcher;
}