Enables PSR-16 Simple Cache services in Symfony projects. These were previously enabled in the older Symfony version but were removed in 4.3.
use Psr\SimpleCache\CacheInterface;
class SomeService
{
public function __construct(private CacheInterface $cache)
{
}
public function doSomething()
{
$this->cache->set('foo', 'bar');
}
}
rekalogika.dev/psr-16-simple-cache-bundle
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.
MIT
Issues and pull requests should be filed in the GitHub repository rekalogika/psr-16-simple-cache-bundle.