@@ -58,6 +58,10 @@ |
||
58 | 58 | return ''; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $path |
|
63 | + * @param string $method |
|
64 | + */ |
|
61 | 65 | private function requestMatched($pathLimit, $path, $method) |
62 | 66 | { |
63 | 67 | return $this->methodMatched($pathLimit['methods'], $method) |
@@ -8,13 +8,11 @@ |
||
8 | 8 | use Noxlogic\RateLimitBundle\Events\RateLimitEvents; |
9 | 9 | use Noxlogic\RateLimitBundle\Service\RateLimitService; |
10 | 10 | use Noxlogic\RateLimitBundle\Util\PathLimitProcessor; |
11 | -use Noxlogic\RateLimitBundle\Whitelisting\WhitelistInterface; |
|
12 | 11 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
13 | 12 | use Symfony\Component\HttpFoundation\Request; |
14 | 13 | use Symfony\Component\HttpFoundation\Response; |
15 | 14 | use Symfony\Component\HttpKernel\Event\FilterControllerEvent; |
16 | 15 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
17 | -use Symfony\Component\Routing\Route; |
|
18 | 16 | |
19 | 17 | class RateLimitAnnotationListener extends BaseListener |
20 | 18 | { |