Commit 3cd859f
committed
bug symfony#61599 [Cache] Make
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[Cache] Make `TagAwareAdapter` registrable as a service
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md -->
| Issues | Fix symfony#59193 symfony#61114
| License | MIT
Fixes error while registering TagAwareAdapter as a service:
```yaml
services:
cache.adapter.array:
class: Symfony\Component\Cache\Adapter\ArrayAdapter
cache.adapter.tag_aware_array:
class: Symfony\Component\Cache\Adapter\TagAwareAdapter
arguments:
- '`@cache`.adapter.array'
framework:
cache:
pools:
persistent.cache_pool:
adapter: cache.adapter.tag_aware_array
```
```
TypeError: Symfony\Component\Cache\Adapter\TagAwareAdapter::__construct(): Argument symfony#1 ($itemsPool) must be of type Symfony\Component\Cache\Adapter\AdapterInterface, string given, called in /var/www/var/cache/test/Container7bUFOLq/getPersistent_CachePoolService.php on line 28
```
Psalm failed unrelated
Commits
-------
d0a673d [Cache] Make `TagAwareAdapter` registrable as a serviceTagAwareAdapter registrable as a service (a.dmitryuk)File tree
2 files changed
+13
-18
lines changed- src/Symfony/Component/Cache
- DependencyInjection
- Tests/DependencyInjection
2 files changed
+13
-18
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
111 | | - | |
| 115 | + | |
112 | 116 | | |
113 | | - | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
137 | 131 | | |
138 | 132 | | |
139 | 133 | | |
| |||
0 commit comments