if (null ===
$this->options
['cache_dir'
]) { $routes =
$this->
getRouteCollection();
$compiled =
is_a($this->options
['matcher_class'
], CompiledUrlMatcher::
class, true
);
if ($compiled) { $routes =
(new CompiledUrlMatcherDumper($routes))->
getCompiledRoutes();
} $this->matcher =
new $this->options
['matcher_class'
]($routes,
$this->context
);
if (method_exists($this->matcher, 'addExpressionLanguageProvider'
)) { foreach ($this->expressionLanguageProviders
as $provider) { $this->matcher->
addExpressionLanguageProvider($provider);
} } return $this->matcher;
} $cache =
$this->
getConfigCacheFactory()->
cache($this->options
['cache_dir'
].'/url_matching_routes.php',
function DConfigCacheInterface
$cache) { $dumper =
$this->
getMatcherDumperInstance();
if (method_exists($dumper, 'addExpressionLanguageProvider'
)) { foreach ($this->expressionLanguageProviders
as $provider) {