Skip to content

Conversation

MacBoldr
Copy link

@MacBoldr MacBoldr commented Jan 5, 2023

The page Using Expressions in Security Access Controls shows an example of how to use the #[IsGranted] attribute (example added in symfony#17148). However, the example code is lacking the use statement for the IsGranted attribute.

The page [Using Expressions in Security Access Controls](https://symfony.com/doc/current/security/expressions.html) shows an example of how to use the `#[IsGranted]` attribute (example added in symfony#17148). However, the example code is lacking the use statement for the IsGranted attribute.
@MacBoldr MacBoldr changed the title Add missing use statement in #[IsGranted] example [Security] Add missing use statement in #[IsGranted] example Jan 5, 2023
javiereguiluz pushed a commit that referenced this pull request Oct 23, 2023
- parameter $year is typed with integer. date function returns string. Code works but casting to the right type feels better.
- added missing import to fix TypeError "Argument #1 ($request) must be of type Request"
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

Successfully merging this pull request may close these issues.

1 participant