Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to customize the DoctrineDbalAdapter cache adapter #20197

Open
Labels
@pauljura

Description

@pauljura

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp