File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/fr/adrienbrault/idea/symfony2plugin/routing Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 3939import fr .adrienbrault .idea .symfony2plugin .stubs .SymfonyProcessors ;
4040import fr .adrienbrault .idea .symfony2plugin .stubs .dict .StubIndexedRoute ;
4141import fr .adrienbrault .idea .symfony2plugin .stubs .indexes .RoutesStubIndex ;
42- import fr .adrienbrault .idea .symfony2plugin .util .AnnotationBackportUtil ;
43- import fr .adrienbrault .idea .symfony2plugin .util .PhpElementsUtil ;
44- import fr .adrienbrault .idea .symfony2plugin .util .PsiElementUtils ;
45- import fr .adrienbrault .idea .symfony2plugin .util .SymfonyBundleUtil ;
42+ import fr .adrienbrault .idea .symfony2plugin .util .*;
4643import fr .adrienbrault .idea .symfony2plugin .util .controller .ControllerAction ;
4744import fr .adrienbrault .idea .symfony2plugin .util .controller .ControllerIndex ;
4845import fr .adrienbrault .idea .symfony2plugin .util .dict .ServiceUtil ;
@@ -85,6 +82,10 @@ public static LookupElement[] getRouteParameterLookupElements(@NotNull Project p
8582 }
8683 }
8784
85+ if (SymfonyUtil .isVersionGreaterThen (project , "3.2.0" )) {
86+ lookupElements .add (LookupElementBuilder .create ("_fragment" ).withIcon (Symfony2Icons .ROUTE ));
87+ }
88+
8889 return lookupElements .toArray (new LookupElement [lookupElements .size ()]);
8990 }
9091
@@ -1031,4 +1032,4 @@ public static boolean isRouteClassAnnotation(@NotNull String clazz) {
10311032 String myClazz = StringUtils .stripStart (clazz , "\\ " );
10321033 return ROUTE_CLASSES .stream ().anyMatch (s -> s .equalsIgnoreCase (myClazz ));
10331034 }
1034- }
1035+ }
You can’t perform that action at this time.
0 commit comments