Skip to content

Commit 595ed5b

Browse files
authored
Fix classname for Psr6Cache
1 parent bb6ed97 commit 595ed5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/cache/psr6_psr16_adapters.rst

+2-2
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)