Skip to content

Commit

Permalink
Cache: Provide psr/simple-cache-implementation (laravel#38767)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Xenonym authored and victorvilella committed Oct 12, 2021
1 parent dc7ed79 commit 3353d07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"symfony/cache": "^5.1.4"
},
"provide": {
"psr/container-implementation": "1.0"
"psr/container-implementation": "1.0",
"psr/simple-cache-implementation": "1.0"
},
"conflict": {
"tightenco/collect": "<5.5.33"
Expand Down
3 changes: 3 additions & 0 deletions src/Illuminate/Cache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"illuminate/macroable": "^8.0",
"illuminate/support": "^8.0"
},
"provide": {
"psr/simple-cache-implementation": "1.0"
},
"autoload": {
"psr-4": {
"Illuminate\\Cache\\": ""
Expand Down

0 comments on commit 3353d07

Please sign in to comment.