getRateLimit() public abstract method
Returns the maximum number of allowed requests and the window size.
public abstract array getRateLimit ( $request, $action ) | ||
---|---|---|
$request | yii\web\Request |
The current request |
$action | yii\base\Action |
The action to be executed |
return | array |
An array of two elements. The first element is the maximum number of allowed requests, and the second element is the size of the window in seconds. |
Please login to continue.