Skip to content

Commit 6160a8f

Browse files
committed
allow weak routes in controller action related popover
1 parent d6921b3 commit 6160a8f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/fr/adrienbrault/idea/symfony2plugin/routing/RouteHelper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,7 @@ public static List<Route> getRoutesOnControllerAction(Method method) {
531531
}
532532

533533
List<Route> routes = new ArrayList<Route>();
534-
535-
Symfony2ProjectComponent symfony2ProjectComponent = method.getProject().getComponent(Symfony2ProjectComponent.class);
536-
for(Map.Entry<String, Route> routeEntry: symfony2ProjectComponent.getRoutes().entrySet()) {
534+
for(Map.Entry<String, Route> routeEntry: getAllRoutes(method.getProject()).entrySet()) {
537535
if(routeEntry.getValue().getController() != null && routeEntry.getValue().getController().equals(methodRouteActionName)) {
538536
routes.add(routeEntry.getValue());
539537
}

0 commit comments

Comments
 (0)