Skip to content

Commit 76f6acd

Browse files
committed
Merge branch '4.4'
* 4.4: fix wrong class import Fix the chain adapter exemple on object creation
2 parents 782cda6 + 9ca83e7 commit 76f6acd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/cache/adapters/chain_adapter.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ given adapters. This exposes a simple and efficient method for creating a layere
1515
The ChainAdapter must be provided an array of adapters and optionally a maximum cache
1616
lifetime as its constructor arguments::
1717

18-
use Symfony\Component\Cache\Adapter\ApcuAdapter;
19-
20-
$cache = new ChainAdapter([
18+
use Symfony\Component\Cache\Adapter\ChainAdapter;
2119

20+
$cache = new ChainAdapter(
2221
// The ordered list of adapters used to fetch cached items
2322
array $adapters,
2423

2524
// The max lifetime of items propagated from lower adapters to upper ones
2625
$maxLifetime = 0
27-
]);
26+
);
2827

2928
.. note::
3029

0 commit comments

Comments
 (0)