-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[RateLimiter] Rename RateLimiter to RateLimiterFactory #38675
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
Conversation
Such renaming makes sense to me |
52b3e0d
to
c08202a
Compare
src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reviewers suggestions should probably be taken into account, but this looks good! Thanks!
Thank you. PR is updated. |
@Nyholm Why did you revert the service renaming? |
Because the tests was failing all over the place. :( The I tried searching for all references in other components and fixing the issue but I couldn't really. I can try an another search if you want. |
Works for me as-is. Thanks for explaining :) |
8d120d3
to
8be261b
Compare
Thank you Tobias. |
Thank you for merging |
Sorry for making a few BC breaks.
@wouterj said that this class was suggested to be named
LimiterFactory
before. But that was rejected.Just my looking at the names of the classes we currently have:
I find it hard to know what these are doing and the difference between them. Note that none of them are used as a rate limiter (ie implements
LimiterInterface
)I would like to be clear that a
RateLimiterFactory
is used to create an object implementingLimiterInterface
.