Skip to content

[Twig] Enhance documentation about is_granted() twig function#22219

Open
lyrixx wants to merge 1 commit intosymfony:6.4from
lyrixx:twig-reference
Open

[Twig] Enhance documentation about is_granted() twig function#22219
lyrixx wants to merge 1 commit intosymfony:6.4from
lyrixx:twig-reference

Conversation

@MrYamous
Copy link
Copy Markdown
Contributor

MrYamous commented Apr 2, 2026

I see your point and it could be nice to use same parameters names for same functions present across several components/bridges...
But in this context I think this could me missleading to use names in doc which are differents than names in code

@lyrixx
Copy link
Copy Markdown
Member Author

lyrixx commented Apr 3, 2026

I think we should rename symfony paramater (in twig bridge), WDYT ?

@MrYamous
Copy link
Copy Markdown
Contributor

MrYamous commented Apr 3, 2026

I think we should rename symfony paramater (in twig bridge), WDYT ?

I agree, looks like a code inconsistency to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants