Property | Type | Description | |
---|---|---|---|
$ipAddress | string | The cached IP address, used for checkpoints checks. | |
$throttle | Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface | The throttle repository. |
Method | Description | |
---|---|---|
__construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void | Constructor. | |
check ( Cartalyst\Sentinel\Users\UserInterface $user ) | {@inheritDoc} | |
fail ( Cartalyst\Sentinel\Users\UserInterface $user = null ) | {@inheritDoc} | |
login ( Cartalyst\Sentinel\Users\UserInterface $user ) | {@inheritDoc} |
Method | Description | |
---|---|---|
checkThrottling ( string $action, Cartalyst\Sentinel\Users\UserInterface $user = null ) : boolean | Checks the throttling status of the given user. | |
throwException ( string $message, string $type, integer $delay ) | Throws a throttling exception. |
public __construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void | ||
$throttle | Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface | |
$ipAddress | string | |
return | void |
public check ( Cartalyst\Sentinel\Users\UserInterface $user ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface |
protected checkThrottling ( string $action, Cartalyst\Sentinel\Users\UserInterface $user = null ) : boolean | ||
$action | string | |
$user | Cartalyst\Sentinel\Users\UserInterface | |
return | boolean |
public fail ( Cartalyst\Sentinel\Users\UserInterface $user = null ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface |
public login ( Cartalyst\Sentinel\Users\UserInterface $user ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface |
protected string $ipAddress | ||
return | string |