Dingo\Api\Http\RateLimit\Handler::__construct PHP Method

__construct() public method

Create a new rate limit handler instance.
public __construct ( Illuminate\Container\Container $container, Illuminate\Cache\CacheManager $cache, array $throttles ) : void
$container Illuminate\Container\Container
$cache Illuminate\Cache\CacheManager
$throttles array
return void
    public function __construct(Container $container, CacheManager $cache, array $throttles)
    {
        $this->cache = $cache;
        $this->container = $container;
        $this->throttles = new Collection($throttles);
    }