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

Drop @ratelimit Annotation, Create #[RateLimit] Attribute, Drop php7 support, Drop symfony 3 & 4 support #132

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

axi
Copy link
Contributor

@axi axi commented May 25, 2023

Should fix #130.

There is still (at least) one thing I would like somebody to check: the way I get Attributes in RateLimitAnnotationListener::getRateLimitsFromAttributes(). I kind of mixed the ways I found in Symfony\Component\HttpKernel\Event\ControllerEvent::setController() & Symfony\Component\HttpKernel\Event\ControllerEvent::getAttributes() (sf6). I should maybe try to use getAttributes() method from ControllerEvent if it exists (sf6) and use my current implementation as a fallback for Sf5.4 ?

I tried to make it the most compatible possible.
Also, I added a condition for uploading coverage in ci but I must verify it still works for non forks.

Let me know what you think.

@axi
Copy link
Contributor Author

axi commented May 25, 2023

Also forget to mention "Drop sensio/framework-extra-bundle"

@axi
Copy link
Contributor Author

axi commented May 25, 2023

Hum, looks like upload coverage is also broken for main repository...

@axi
Copy link
Contributor Author

axi commented Jun 13, 2023

Something wrong with that pull request ?

Copy link
Collaborator

@goetas goetas left a comment

Choose a reason for hiding this comment

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

Overall this looks great! just two minor comments on my side

EventListener/RateLimitAnnotationListener.php Outdated Show resolved Hide resolved
EventListener/RateLimitAnnotationListener.php Outdated Show resolved Hide resolved
@goetas goetas merged commit 319dabf into jaytaph:main Aug 14, 2023
10 checks passed
@goetas
Copy link
Collaborator

goetas commented Aug 14, 2023

@axi thanks a lot. while solving the conflicts i had to rebase your branch, but now somehow github show my face on the commit despite the fact that the commit is authored by you. 😕

@axi
Copy link
Contributor Author

axi commented Aug 14, 2023

@goetas no worries, thanks for mentioning it

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.

sensio/framework-extra-bundle is deprecated
2 participants