Skip to content

The go to completion is not working with the method denyAccessUnlessGranted() in Symfony 5.4 #2413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
weichao-yu opened this issue Feb 28, 2025 · 1 comment

Comments

@weichao-yu
Copy link
Contributor

The go to completion is not working with the method denyAccessUnlessGranted() in Symfony 5.4 after I upgraded the Symfony Framework from 4.4 to 5.4.
However, the go to completion is still working with the method isGranted() in Symfony 5.4.

In Symfony 4.4, these two methods are defined in the ControllerTrait: https://github.com/symfony/symfony/blob/4.4/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php
In Symfony 5.4, these two methods are defined in the AbstractController: https://github.com/symfony/symfony/blob/5.4/src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php

I am not sure if this is the reason. Could you please help check this?

FYI, my Phpstorm version is:
PhpStorm 2023.3.8
Build #PS-233.15619.9, built on September 4, 2024
Runtime version: 17.0.12+1-b1087.25 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 15.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8

Kind regards,
Weichao

@weichao-yu
Copy link
Contributor Author

Hi @Haehnchen

Could you please help check the pull request?
#2431

Kind regards,
Weichao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant