checkRateLimit() public method
Checks whether the rate limit exceeds.
public void checkRateLimit ( $user, $request, $response, $action ) | ||
---|---|---|
$user | yii\filters\RateLimitInterface |
The current user |
$request | yii\web\Request | |
$response | yii\web\Response | |
$action | yii\base\Action |
The action to be executed |
throws | yii\web\TooManyRequestsHttpException |
if rate limit exceeds |
Please login to continue.