-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Security] Autocomplete roles #431
Comments
good idea. but not only for twig files. also related to #412
<service id="security.access_map" class="Symfony\Component\Security\Http\AccessMap" public="false">
<call method="add">
<argument type="service">
<service class="Symfony\Component\HttpFoundation\RequestMatcher" public="false">
<argument>^/login$</argument>
</service>
</argument>
<argument type="collection">
<argument>IS_AUTHENTICATED_ANONYMOUSLY</argument>
</argument>
<argument>null</argument>
</call> |
It also relates #141. Imho much easier write custom symfony-command which generates JSON instead of writing parser on Java. Somewho of Symfony users can write this kind of command but only small part of Symfony users can code on Java. |
yes, its also came to my mind because custom twig completion possibilities already included in https://github.com/Haehnchen/idea-php-toolbox per json, but it needs some more improvements before a publish. moreover symfony2 plugin should provide completion on its own data, to make life easier for all "lazy developers" which wont configure several plugins. |
IMHO it is not so hard install 3 plugins (annotations, php-toolbox, symfony2), one bundle and run 2-3 symfony commands. It can unweight you. |
…teOnAttribute and Voter::supports #431
…teOnAttribute and Voter::supports #431
👍 |
Hi,
It'd be nice to autocomplete role names inside calls to
is_granted
. This would be built-in roles (IS_AUTHENTICATED_FULLY
,IS_AUTHENTICATED_REMEMBERED
, etc) as well as any custom roles defined insecurity.yml
.The text was updated successfully, but these errors were encountered: