loadAllowance() public abstract method
Loads the number of allowed requests and the corresponding timestamp from a persistent storage.
public abstract array loadAllowance ( $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 number of allowed requests, and the second element is the corresponding UNIX timestamp. |
Please login to continue.