Skip to content

[Security] Add missing use statement in #[IsGranted] example #1

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
wants to merge 1 commit into
base: 6.2
Choose a base branch
from

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