8000 Fix Psr6Cache classname for 3.4 and 4.2 by Art4 · Pull Request #12022 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Fix Psr6Cache classname for 3.4 and 4.2 #12022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix classname for Psr6Cache
  • Loading branch information
Art4 authored Jul 24, 2019
commit 595ed5ba7f5cba5ff9d3fc04de32841b69eb2d64
4 changes: 2 additions & 2 deletions components/cache/psr6_psr16_adapters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ the class instead. No problem! The Cache component provides the
this use-case::

use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Simple\Psr16Cache;
use Symfony\Component\Cache\Simple\Psr6Cache;

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

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

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