Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ccc67b7

Browse filesBrowse files
committed
[FrameworkBundle][RateLimiter] deprecate RateLimiterFactory alias
1 parent 17445a3 commit ccc67b7
Copy full SHA for ccc67b7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,10 +3266,11 @@ private function registerRateLimiterConfiguration(array $config, ContainerBuilde
32663266
$limiterConfig['id'] = $name;
32673267
$limiter->replaceArgument(0, $limiterConfig);
32683268

3269-
$container->registerAliasForArgument($limiterId, RateLimiterFactory::class, $name.'.limiter');
3269+
$factoryAlias = $container->registerAliasForArgument($limiterId, RateLimiterFactory::class, $name.'.limiter');
32703270

32713271
if (interface_exists(RateLimiterFactoryInterface::class)) {
32723272
$container->registerAliasForArgument($limiterId, RateLimiterFactoryInterface::class, $name.'.limiter');
3273+
$factoryAlias->setDeprecated('symfony/dependency-injection', '7.3', 'The "%alias_id%" service alias is deprecated and will be removed in 8.0.').\sprintf(' You should use "%s %s.limiter" instead.', RateLimiterFactoryInterface::class, $name);
32733274
}
32743275
}
32753276
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.