Skip to content

Commit b185bc4

Browse files
committed
minor symfony#12025 Fix the chain adapter exemple on object creation (blazarecki)
This PR was merged into the 3.4 branch. Discussion ---------- Fix the chain adapter exemple on object creation Commits ------- 2191c36 Fix the chain adapter exemple on object creation
2 parents aeda6ab + 2191c36 commit b185bc4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/cache/adapters/chain_adapter.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ lifetime as its constructor arguments::
1717

1818
use Symfony\Component\Cache\Adapter\ApcuAdapter;
1919

20-
$cache = new ChainAdapter([
21-
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)