Skip to content

[Bug] Fix RateLimiter framework configuration #38507

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

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

bobvandevijver
Copy link
Contributor

Q A
Branch? 5.x for features
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Small mistake in the rate limiter configuration, instead of unsetting the storage_service option the never existing storage option was unset, resulting into an application error when trying to use a Limiter in your application.

The exception was:

Uncaught PHP Exception: The option "storage_service" does not exist. Defined options are: "id", "interval", "limit", "rate", "strategy"."

This was introduced in #38204, so a highlight for @wouterj to check this :)

Small mistake in the rate limiter configuration, instead of unsetting the `storage_service` option the never existing `storage` option was unset, resulting into an application error when trying to use a Limiter in your application.

Uncaught PHP Exception: The option "storage_service" does not exist. Defined options are: "id", "interval", "limit", "rate", "strategy"."
@bobvandevijver
Copy link
Contributor Author

When looking at the failed tests, it doesn't seem to be related to this change.

@fabpot
Copy link
Member

fabpot commented Oct 11, 2020

Thank you @bobvandevijver.

@fabpot fabpot merged commit d1f2faf into symfony:5.x Oct 11, 2020
@bobvandevijver bobvandevijver deleted the patch-4 branch October 11, 2020 06:13
@fabpot fabpot mentioned this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants