/** * Gets the 'router.matcher' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher A Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher instance. */ protected function getRouter_MatcherService() { $this->services['router.matcher'] = $instance = new \Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher($this->get('router.route_provider')); $instance->setFinalMatcher($this->get('router.matcher.final_matcher')); $instance->addRouteFilter($this->get('route_filter.lazy_collector'), 0); $instance->_serviceId = 'router.matcher'; return $instance; }
/** * Gets the 'router.matcher' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher A Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher instance. */ protected function getRouter_MatcherService() { $this->services['router.matcher'] = $instance = new \Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher($this->get('router.route_provider')); $instance->setFinalMatcher($this->get('router.matcher.final_matcher')); $instance->addRouteFilter($this->get('content_type_header_matcher'), 0); $instance->addRouteFilter($this->get('accept_header_matcher'), 0); return $instance; }