8000 minor #12022 Fix Psr6Cache classname for 3.4 and 4.2 (Art4) · symfony/symfony-docs@bd23e4c · GitHub
[go: up one dir, main page]

Skip to content

Commit bd23e4c

Browse files
committed
minor #12022 Fix Psr6Cache classname for 3.4 and 4.2 (Art4)
This PR was merged into the 3.4 branch. Discussion ---------- Fix Psr6Cache classname for 3.4 and 4.2 This PR will fix a wrong class name that was added in #11830. This PR affects only the branches 3.4 and 4.2. In 4.3 the class was deprecated and moved to `Symfony\Component\Cache\Psr16Cache`, so the branches 4.3 and 4.4 are not affected. Commits ------- 595ed5b Fix classname for Psr6Cache
2 parents 675acb9 + 595ed5b commit bd23e4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/cache/psr6_psr16_adapters.rst

Lines changed: 2 additions & 2 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ the class instead. No problem! The Cache component provides the
7474
this use-case::
7575

7676
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
77-
use Symfony\Component\Cache\Simple\Psr16Cache;
77+
use Symfony\Component\Cache\Simple\Psr6Cache;
7878

7979
// the PSR-6 cache object that you want to use
8080
$psr6Cache = new FilesystemAdapter();
8181

8282
// a PSR-16 cache that uses your cache internally!
83-
$psr16Cache = new Psr16Cache($psr6Cache);
83+
$psr16Cache = new Psr6Cache($psr6Cache);
8484

8585
// now use this wherever you want
8686
$githubApiClient = new GitHubApiClient($psr16Cache);

0 commit comments

Comments
 (0)
0