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
        );
    }
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
        );
    }
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 ) ; }
Create a throttling repository.

@return \Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository
Create a throttling repository .