File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ CHANGELOG
9
9
* Add JsonEncoder services and configuration
10
10
* Add new ` framework.property_info.with_constructor_extractor ` option to allow enabling or disabling the constructor extractor integration
11
11
* Deprecate the ` --show-arguments ` option of the ` container:debug ` command, as arguments are now always shown
12
+ * Add ` RateLimiterFactoryInterface ` as an alias of the ` limiter ` service
12
13
13
14
7.2
14
15
---
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \DependencyInjection \Loader \Configurator ;
13
13
14
14
use Symfony \Component \RateLimiter \RateLimiterFactory ;
15
+ use Symfony \Component \RateLimiter \RateLimiterFactoryInterface ;
15
16
16
17
return static function (ContainerConfigurator $ container ) {
17
18
$ container ->services ()
27
28
null ,
28
29
])
29
30
;
31
+
32
+ if (interface_exists (RateLimiterFactoryInterface::class)) {
33
+ $ container ->services ()
34
+ ->alias (RateLimiterFactoryInterface::class, 'limiter ' );
35
+ }
30
36
};
You can’t perform that action at this time.
0 commit comments