From 52ba03248db61ca3f3a52c29901e6d36dcc37149 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 19 Aug 2017 00:42:53 +0200 Subject: [PATCH] Make 'throttle' method for throttling or rate limiting a public method --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index 284c969..0473f73 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1584,7 +1584,7 @@ final class Auth extends UserManager { * @throws TooManyRequestsException if the actual demand has exceeded the designated supply * @throws AuthError if an internal problem occurred (do *not* catch) */ - protected function throttle(array $criteria, $supply, $interval, $burstiness = null, $simulated = null, $cost = null) { + public function throttle(array $criteria, $supply, $interval, $burstiness = null, $simulated = null, $cost = null) { // generate a unique key for the bucket (consisting of 44 or fewer ASCII characters) $key = Base64::encodeUrlSafeWithoutPadding( \hash(