Skip to content

Commit 4305178

Browse files
[Bug] Fix RateLimiter framework configuration
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"."
1 parent 8dd15e2 commit 4305178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ public static function registerRateLimiter(ContainerBuilder $container, string $
22692269
}
22702270

22712271
$limiter->replaceArgument(1, new Reference($storageId));
2272-
unset($limiterConfig['storage']);
2272+
unset($limiterConfig['storage_service']);
22732273
unset($limiterConfig['cache_pool']);
22742274

22752275
$limiterConfig['id'] = $name;

0 commit comments

Comments
 (0)