Returns the maximum number of allowed requests and the window size.
public getRateLimit ( |
||
$request | the current request | |
$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. |