diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java index e1c753b1e..e1a62a090 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java @@ -17,6 +17,9 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.util.HashSet; +import java.util.Set; + /** * @author Daniel Espendiller */ @@ -46,6 +49,8 @@ public void processElementsWithName(@NotNull String name, @NotNull Processor targets = new HashSet<>(); + for (Pair entry : RouteHelper.getMethodsForPathWithPlaceholderMatchRoutes(project, name)) { Route route = entry.getFirst(); @@ -54,8 +59,14 @@ public void processElementsWithName(@NotNull String name, @NotNull Processor