Skip to content
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

feat: if a policy matches the name of a model we automatically register it #6623

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

valentindrdt
Copy link
Contributor

@valentindrdt valentindrdt commented Sep 18, 2024

Q A
Branch? main
Tickets Closes #..., closes #...
License MIT
Doc PR api-platform/docs#...

Automatic policy registration

…er it, no need to do it manually anymore
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

@dunglas
Copy link
Member

dunglas commented Sep 18, 2024

Couldn't we do something similar for Form Request btw?

@soyuka soyuka merged commit 00787f3 into api-platform:main Sep 18, 2024
58 of 59 checks passed
soyuka pushed a commit that referenced this pull request Sep 18, 2024

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
* feat: if a policy matches the name of a model we automatically register it, no need to do it manually anymore

* fix: optimising the way we handle collection

* fix: phpstan

* fix: cs-fixer
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.

None yet

3 participants