Closed CreativeNative closed 2 years ago
In composer.json we need also the laminas-cache-storage-deprecated-factory. Laminas-cache and also doctrine cache are in heavy construction, so actually it's a mess. But at least it's working and compatible with PHP8.0 and maybe also with PHP8.1
"laminas/laminas-cache": "^3.1.2",
"laminas/laminas-cache-storage-deprecated-factory": "^1.0.0",
"laminas/laminas-cache-storage-adapter-blackhole": "^2.0.0",
"laminas/laminas-cache-storage-adapter-filesystem": "^2.0.0",
In modules.config add:
'Laminas\Cache\Module',
'Laminas\Cache\Storage\Adapter\BlackHole',
'Laminas\Cache\Storage\Adapter\Filesystem',
I checked the code. From my point of view it can be deleted. Please check and tell me what do you think.
Will give this a go. I remember when I last messed with it, laminas-cache was a giant mess. Things do seem to have improved, despite it being a clunky install still. I'll create a PR to prepare for 8.1, and also, to recommend putting the replace blocks in the parent composer.
I will try it in my eco system and will send an PR if everything works fine.