Skip to content
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

[8.x] Provide psr/simple-cache-implementation #38767

Merged
merged 1 commit into from
Sep 12, 2021
Merged

[8.x] Provide psr/simple-cache-implementation #38767

merged 1 commit into from
Sep 12, 2021

Conversation

Xenonym
Copy link
Contributor

@Xenonym Xenonym commented Sep 11, 2021

Illuminate\Cache\Repository implements PSR-16's Psr\SimpleCache\CacheInterface via the Illuminate\Contracts\Cache\Repository interface.

Let's declare that illuminate/cache and laravel/framework provide psr/simple-cache-implementation so that packages relying on psr/simple-cache-implementation for a PSR-16 cache can be installed in a Laravel project.


Context: I was trying to use the Unleash PHP client (unleash/client) in a Laravel project. The client will fail to composer install in a Laravel project as it uses the presence of a package providing psr/simple-cache-implementation to ensure that a PSR-16 cache is available.

Since Laravel's cache is already PSR-16 compliant, it should provide the psr/simple-cache-implementation virtual package to allow PHP packages requiring a PSR-16 cache to be used in a Laravel project.

Illuminate\Cache\Repository implements PSR-16's
Psr\SimpleCache\CacheInterface via the
Illuminate\Contracts\Cache\Repository interface.

Let's declare that `illuminate/cache` and `laravel/framework` provide
`psr/simple-cache-implementation` so that packages relying on
`psr/simple-cache implementation` for a PSR-16 cache can be installed
in a Laravel project.
@taylorotwell taylorotwell merged commit 50eca08 into laravel:8.x Sep 12, 2021
@Xenonym Xenonym deleted the chore/provide-psr-simple-cache branch September 12, 2021 18:29
@GrahamCampbell GrahamCampbell changed the title [8.x] Cache: Provide psr/simple-cache-implementation [8.x] Provide psr/simple-cache-implementation Sep 12, 2021
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
Illuminate\Cache\Repository implements PSR-16's
Psr\SimpleCache\CacheInterface via the
Illuminate\Contracts\Cache\Repository interface.

Let's declare that `illuminate/cache` and `laravel/framework` provide
`psr/simple-cache-implementation` so that packages relying on
`psr/simple-cache implementation` for a PSR-16 cache can be installed
in a Laravel project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants