Skip to content

Commit c58958a

Browse files
authored
Merge pull request #2431 from weichao-yu/voter-goto-completion
fix voter goto completion for Symfony 4/5/6
2 parents 551d1e7 + a345849 commit c58958a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/security/VoterGotoCompletionRegistrar.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public static boolean isIsGrantedMethodMatch(@NotNull StringLiteralExpression st
8585
.withSignature("Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait", "isGranted")
8686
.withSignature("Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait", "denyAccessUnlessGranted")
8787

88+
// Symfony 4 / 5 / 6
89+
.withSignature("Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController", "isGranted")
90+
.withSignature("Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController", "denyAccessUnlessGranted")
91+
8892
.withSignature("Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface", "isGranted")
8993
.match();
9094

0 commit comments

Comments
 (0)