protected function getUrl($routeAnnotation, $route, $args = array()) { $url = new Url($routeAnnotation, $this); $url->setRouteAndArgs($route, $args); $base = $url->addFilters($this->allFilterss); $filters = iterator_to_array($routeAnnotation->GetParent()); if ($routeAnnotation->isMethod()) { $classAnn = $routeAnnotation->getObject()->getClass()->get(''); $filters = array_merge($classAnn, $filters); } $url->addFiltersFromAnnotations($this->routeFilters, $filters, $base); return $url; }