IndraGunawan / api-rate-limit-bundle

Rate limits protection for api-platform resources.
MIT License
66 stars 10 forks source link

Default Symfony cache not working #16

Open Sigri44 opened 3 years ago

Sigri44 commented 3 years ago

Hi,

I use this package from Symfony 4.4, and with default Symfony Cache, i have an error : The path "indragunawan_api_rate_limit.cache" cannot contain an empty value, but got null.

Symfony : 4.4 PHP : 4.4 Package : latest

Thanks.

Kreyu commented 3 years ago

As the errors says, cache cannot contain empty value. You probably used cache: ~, which is not valid. If you want to use Symfony cache, then provide its service name, for example cache.app:

indragunawan_api_rate_limit:
    enabled: true
    cache: cache.app