Skip to content

Commit 917ebfa

Browse files
Nyholmchalasr
authored andcommitted
[RateLimiter] Rename RateLimiter to RateLimiterFactory
1 parent e8656b1 commit 917ebfa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
133133
use Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface;
134134
use Symfony\Component\RateLimiter\LimiterInterface;
135-
use Symfony\Component\RateLimiter\RateLimiter;
135+
use Symfony\Component\RateLimiter\RateLimiterFactory;
136136
use Symfony\Component\RateLimiter\Storage\CacheStorage;
137137
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
138138
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
@@ -2280,7 +2280,7 @@ public static function registerRateLimiter(ContainerBuilder $container, string $
22802280
$limiterConfig['id'] = $name;
22812281
$limiter->replaceArgument(0, $limiterConfig);
22822282

2283-
$container->registerAliasForArgument($limiterId, RateLimiter::class, $name.'.limiter');
2283+
$container->registerAliasForArgument($limiterId, RateLimiterFactory::class, $name.'.limiter');
22842284
}
22852285

22862286
private function resolveTrustedHeaders(array $headers): int

Resources/config/rate_limiter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

14-
use Symfony\Component\RateLimiter\RateLimiter;
14+
use Symfony\Component\RateLimiter\RateLimiterFactory;
1515

1616
return static function (ContainerConfigurator $container) {
1717
$container->services()
1818
->set('cache.rate_limiter')
1919
->parent('cache.app')
2020
->tag('cache.pool')
2121

22-
->set('limiter', RateLimiter::class)
22+
->set('limiter', RateLimiterFactory::class)
2323
->abstract()
2424
->args([
2525
abstract_arg('config'),

0 commit comments

Comments
 (0)