Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Open
Labels
Description
Hi, I recently added login throttling to my site and was trying to customize the table name with the DoctrineDbalAdapter to fit with the naming convention of an existing database. I checked here:https://symfony.com/doc/current/components/cache/adapters/doctrine_dbal_adapter.html and here:https://symfony.com/doc/current/cache.html#custom-provider-options
Ultimately I got the answer from here:symfony/symfony#58168
The final complete solution for me was:
# config/packages/cache.yamlframework: cache: app: my_adapter pools: login_throttling.cache: adapter: my_adapter
# config/services.yamlservices: my_adapter: parent: cache.adapter.doctrine_dbal arguments: $connOrDsn: '@database_connection' $options: db_table: my_adapter_table
Would be nice to have this documented in the appropriate place. Thanks!