Skip to content

[Cache] ChainAdapter with custom namespace #60594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 6.4
Choose a base branch
from

Conversation

IndraGunawan
Copy link
Contributor

@IndraGunawan IndraGunawan commented May 30, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #60579
License MIT

How to reproduce

symfony new --webapp --version lts 6.4
# services.yaml
services:
    _defaults:
        autowire: true 
        autoconfigure: true
    my_cache.chain:
        class: Symfony\Component\Cache\Adapter\ChainAdapter
        arguments:
            - [ '@cache.adapter.array', '@cache.adapter.filesystem' ]
        tags:
            - { name: cache.pool, namespace: 'my-custom-ns' }
# cache.yaml
framework:
    cache:
        pools:
            my_chain_pool:
                adapter: my_cache.chain

The error:

failing tests: https://github.com/symfony/symfony/actions/runs/15363463181/job/43233401667?pr=60594

!!  In Definition.php line 295:
!!                                                                                 
!!    The argument "0" doesn't exist in class "Symfony\Component\Cache\Adapter\ChainAdapter".  

@carsonbot carsonbot added this to the 6.4 milestone May 30, 2025
@IndraGunawan IndraGunawan changed the title ChainAdapter with custom namespace [Cache] ChainAdapter with custom namespace May 30, 2025
@IndraGunawan IndraGunawan marked this pull request as draft May 30, 2025 08:01
@IndraGunawan IndraGunawan force-pushed the chain-adapter-custom-ns branch from bfb0f18 to 73605bb Compare May 30, 2025 08:58
@IndraGunawan IndraGunawan marked this pull request as ready for review May 30, 2025 09:02
@IndraGunawan IndraGunawan force-pushed the chain-adapter-custom-ns branch from 73605bb to 5c8f906 Compare May 31, 2025 09:44
@xabbuh

This comment was marked as outdated.

@IndraGunawan IndraGunawan force-pushed the chain-adapter-custom-ns branch from 5c8f906 to ad4b87b Compare May 31, 2025 12:02
@IndraGunawan

This comment was marked as outdated.

@IndraGunawan
Copy link
Contributor Author

Status: ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants