Hello,
I moved my application to Laminas 3 with Php8.1 and now my translation files are not cached anymore.
Also, I get this error message
Fatal error: Uncaught Laminas\ServiceManager\Exception\ServiceNotFoundException: Unable to resolve service “Laminas\Cache\Storage\Adapter\RedisCache” to a factory; are you certain you provided it during configuration? in C:\wamp\www\ecole\vendor\laminas\laminas-servicemanager\src\ServiceManager.php on line 586
Where RedisCache is my Factory intializing my redis server.
Here is my configuration file :
'translator' => [
'translation_file_patterns' => [
[
'base_dir' => __DIR__ . '/../../../data/translations',
'type' => 'ini',
'pattern' => '%s.ini',
]
],
'cache' => [
'adapter' => [
'name' => 'RedisCache' ,
'options' => [
'persistent_id' => 'nslabs',
'server' => [
'host' => '127.0.0.1',
'port' => 6379,
],
/*'cache_dir' => __DIR__ . '/../../../data/cache',
'ttl' => '3600',
'namespace' => 'nslabs',*/
],
],
'plugins' => [
[
'name' => 'serializer',
'options' => []
],
'exception_handler' => [
'throw_exceptions' => true
],
],
]