matomo
/
app
/
vendor
/
prefixed
/
symfony
/
http-foundation
/
RateLimiter
/
RequestRateLimiterInterface.php
RequestRateLimiterInterface.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\HttpFoundation\RateLimiter; |
| 12 | |
| 13 | use Matomo\Dependencies\Symfony\Component\HttpFoundation\Request; |
| 14 | use Symfony\Component\RateLimiter\RateLimit; |
| 15 | /** |
| 16 | * A special type of limiter that deals with requests. |
| 17 | * |
| 18 | * This allows to limit on different types of information |
| 19 | * from the requests. |
| 20 | * |
| 21 | * @author Wouter de Jong <wouter@wouterj.nl> |
| 22 | */ |
| 23 | interface RequestRateLimiterInterface |
| 24 | { |
| 25 | public function consume(Request $request) : RateLimit; |
| 26 | public function reset(Request $request) : void; |
| 27 | } |
| 28 |