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 587d99f

Browse filesBrowse files
committed
[RateLimiter] Remove redundant properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent bd889f9 commit 587d99f
Copy full SHA for 587d99f

File tree

Expand file treeCollapse file tree

3 files changed

+0
-21
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+0
-21
lines changed

‎src/Symfony/Component/RateLimiter/Policy/FixedWindowLimiter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Policy/FixedWindowLimiter.php
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,13 @@ final class FixedWindowLimiter implements LimiterInterface
2929
{
3030
use ResetLimiterTrait;
3131

32-
private $id;
3332
private $limit;
34-
private $storage;
3533

3634
/**
3735
* @var int seconds
3836
*/
3937
private $interval;
4038

41-
/**
42-
* @var LockInterface
43-
*/
44-
private $lock;
45-
4639
public function __construct(string $id, int $limit, \DateInterval $interval, StorageInterface $storage, LockInterface $lock = null)
4740
{
4841
if ($limit < 1) {

‎src/Symfony/Component/RateLimiter/Policy/SlidingWindowLimiter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Policy/SlidingWindowLimiter.php
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,13 @@ final class SlidingWindowLimiter implements LimiterInterface
3737
{
3838
use ResetLimiterTrait;
3939

40-
private $id;
4140
private $limit;
42-
private $storage;
4341

4442
/**
4543
* @var int seconds
4644
*/
4745
private $interval;
4846

49-
/**
50-
* @var LockInterface
51-
*/
52-
private $lock;
53-
5447
public function __construct(string $id, int $limit, \DateInterval $interval, StorageInterface $storage, LockInterface $lock = null)
5548
{
5649
$this->storage = $storage;

‎src/Symfony/Component/RateLimiter/Policy/TokenBucketLimiter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Policy/TokenBucketLimiter.php
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,8 @@ final class TokenBucketLimiter implements LimiterInterface
2828
{
2929
use ResetLimiterTrait;
3030

31-
private $id;
3231
private $maxBurst;
3332
private $rate;
34-
private $storage;
35-
36-
/**
37-
* @var LockInterface
38-
*/
39-
private $lock;
4033

4134
public function __construct(string $id, int $maxBurst, Rate $rate, StorageInterface $storage, LockInterface $lock = null)
4235
{

0 commit comments

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