You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #60594 [Cache] Fix using a ChainAdapter as an adapter for a pool (IndraGunawan)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[Cache] Fix using a `ChainAdapter` as an adapter for a pool
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | Fix#60579
| License | MIT
### How to reproduce
```
symfony new --webapp --version lts 6.4
```
```yaml
# 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' }
```
```yaml
# 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".
```
Commits
-------
b24e3cd [Cache] Fix using a `ChainAdapter` as an adapter for a pool
0 commit comments