Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"Adapters For Interoperability between PSR-6 and PSR-16 Cache" wrong class name? #11824

Closed
Assignees
nicolas-grekas
Milestone
@peaceant

Description

@peaceant

https://github.com/symfony/symfony-docs/blob/master/components/cache/psr6_psr16_adapters.rst

In the last code example is new instance ofPsr6Cache. Shouldn't it be instance ofPsr16Cache since you are importingSymfony\Component\Cache\Psr16Cache?

useSymfony\Component\Cache\Adapter\FilesystemAdapter;useSymfony\Component\Cache\Psr16Cache;// the PSR-6 cache object that you want to use$psr6Cache =newFilesystemAdapter();// a PSR-16 cache that uses your cache internally!$psr16Cache =newPsr6Cache($psr6Cache);# <--- Wrong?$psr16Cache =newPsr16Cache($psr6Cache);# <--- Correct?// now use this wherever you want$githubApiClient =newGitHubApiClient($psr16Cache);

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp