Cartalyst\Sentinel\Laravel\SentinelServiceProvider::registerThrottling PHP Метод

registerThrottling() защищенный Метод

Registers the throttle.
protected registerThrottling ( ) : void
Результат void
    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);
        });
    }