Cartalyst\Sentinel\Native\SentinelBootstrapper::createThrottling PHP Method

createThrottling() protected method

Create a throttling repository.
protected createThrottling ( ) : IlluminateThrottleRepository
return Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository
    protected function createThrottling()
    {
        $model = $this->config['throttling']['model'];
        foreach (['global', 'ip', 'user'] as $type) {
            ${"{$type}Interval"} = $this->config['throttling'][$type]['interval'];
            ${"{$type}Thresholds"} = $this->config['throttling'][$type]['thresholds'];
        }
        return new IlluminateThrottleRepository($model, $globalInterval, $globalThresholds, $ipInterval, $ipThresholds, $userInterval, $userThresholds);
    }