protected function registerThrottling()
{
$this->app->singleton('sentinel.throttling', function ($app) {
$model = $app['config']->get('cartalyst.sentinel.throttling.model');
$throttling = $app['config']->get('cartalyst.sentinel.throttling');
foreach (['global', 'ip', 'user'] as $type) {
${"{$type}Interval"} = $throttling[$type]['interval'];
${"{$type}Thresholds"} = $throttling[$type]['thresholds'];
}
return new IlluminateThrottleRepository($model, $globalInterval, $globalThresholds, $ipInterval, $ipThresholds, $userInterval, $userThresholds);
});
}