File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/Symfony/Bundle/FrameworkBundle/DependencyInjection Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1812,15 +1812,11 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode)
18121812 ->info ('Rate limiter configuration ' )
18131813 ->{!class_exists (FullStack::class) && class_exists (TokenBucketLimiter::class) ? 'canBeDisabled ' : 'canBeEnabled ' }()
18141814 ->fixXmlConfig ('limiter ' )
1815- ->beforeNormalization ()
1816- ->ifTrue (function ($ v ) { return \is_array ($ v ) && !isset ($ v ['enabled ' ]); })
1817- ->then (function ($ v ) { return $ v + ['enabled ' => true ]; })
1818- ->end ()
18191815 ->beforeNormalization ()
18201816 ->ifTrue (function ($ v ) { return \is_array ($ v ) && !isset ($ v ['limiters ' ]) && !isset ($ v ['limiter ' ]); })
18211817 ->then (function (array $ v ) {
18221818 $ newV = [
1823- 'enabled ' => $ v ['enabled ' ],
1819+ 'enabled ' => $ v ['enabled ' ] ?? true ,
18241820 ];
18251821 unset($ v ['enabled ' ]);
18261822
You can’t perform that action at this time.
0 commit comments