rekalogika / psr-16-simple-cache-bundle
Enables PSR-16 Simple Cache services in Symfony that were previously removed in Symfony 4.3. Just wire in Psr\SimpleCache\CacheInterface to use it.
Fund package maintenance!
priyadi
Installs: 3 868
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- psr/simple-cache: ^3.0
- symfony/cache: ^6.0 || ^7.0
- symfony/dependency-injection: ^6.0 || ^7.0
- symfony/http-kernel: ^6.0 || ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^10.5
- psalm/plugin-phpunit: ^0.19.0
- symfony/config: ^6.0 || ^7.0
- symfony/phpunit-bridge: ^6.0 || ^7.0
- vimeo/psalm: ^5.26
Provides
README
Enables PSR-16 Simple Cache services in Symfony projects. These were previously enabled in the older Symfony version but were removed in 4.3.
Synopsis
use Psr\SimpleCache\CacheInterface; class SomeService { public function __construct(private CacheInterface $cache) { } public function doSomething() { $this->cache->set('foo', 'bar'); } }
Documentation
rekalogika.dev/psr-16-simple-cache-bundle
Credits
This package is just a service definition. The actual implementation is done by the Symfony project; they just don't make the service available by default.
License
MIT
Contributing
Issues and pull requests should be filed in the GitHub repository rekalogika/psr-16-simple-cache-bundle.