public function NestedMatcher::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/NestedMatcher/NestedMatcher.php \Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher::__construct()
Constructs a new NestedMatcher
Parameters
RouteProviderInterface $provider The route provider this matcher: should use
FinalMatcherInterface $final The Final Matcher to match the: routes
File
- vendor/
symfony-cmf/ routing/ NestedMatcher/ NestedMatcher.php, line 71
Class
- NestedMatcher
- A more flexible approach to matching. The route collection to match against can be dynamically determined based on the request and users can inject their own filters or use a custom final matching strategy.
Namespace
Symfony\Cmf\Component\Routing\NestedMatcherCode
public function __construct(RouteProviderInterface $provider = null, FinalMatcherInterface $final = null) {
if (null !== $provider) {
$this
->setRouteProvider($provider);
}
if (null !== $final) {
$this
->setFinalMatcher($final);
}
}