Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a345849

Browse files
fix voter goto completion for Symfony 4/5/6
1 parent 019a477 commit a345849

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)

AltStyle によって変換されたページ (->オリジナル) /