Skip to content

Commit db41852

Browse files
committed
feature #38664 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace (Nyholm)
This PR was squashed before being merged into the 5.2-dev branch. Discussion ---------- [RateLimiter] Moved classes implementing LimiterInterface to a new namespace | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | no | New feature? | no | Deprecations? | no? | Tickets | | License | MIT | Doc PR | Before we release the RateLimit component. I think it would be a good idea to put the 7 classes that belongs to a specific strategy in their own "Policy" namespace. It is very likely that it will be more strategies in the future and the `Symfony\Component\RateLimiter` namespace is crowed as it is. I decided not to put the `CompoundLimiter` in this namespace as it is not a strategy. Commits ------- 1e6cea56e4 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace
2 parents ca54f1b + fe7e126 commit db41852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RateLimiter/AbstractRequestRateLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\HttpFoundation\Request;
1515
use Symfony\Component\RateLimiter\LimiterInterface;
16-
use Symfony\Component\RateLimiter\NoLimiter;
16+
use Symfony\Component\RateLimiter\Policy\NoLimiter;
1717
use Symfony\Component\RateLimiter\RateLimit;
1818

1919
/**

0 commit comments

Comments
 (0)