Hi
I have this in my configs/autoload/caches.local.php
<?php
return array(
'caches' => array(
'Cache\Persistent' => array(
'adapter' => 'Laminas\Cache\Storage\Adapter\Filesystem',
'maxTtl' => 1,
'options' => [
'cache_dir' => realpath(__DIR__ . '/../../data/cache/'),
'dir_permission' => 0755,
'file_permission' => 0666,
'dir_level' => 1
],
'plugins' => [
'Serializer',
'exception_handler' => [
'throw_exceptions' => true,
],
],
)
),
);
Later in my Module.php I am doing this
use Laminas\Cache\Pattern\ObjectCache;
use Laminas\Cache\Pattern\PatternOptions;
.
.
.
// in public function getServiceConfig()
'SampleTable' => function ($sm) {
$dbAdapter = $sm->get('Laminas\Db\Adapter\Adapter');
$tableObj = new SampleTable($dbAdapter);
$storage = $sm->get('Cache\Persistent');
$table = new ObjectCache(
$storage,
new PatternOptions([
'object' => $tableObj,
'object_key' => 'somekey'
])
);
return $table;
},
I am getting this when I run the application:
An error occurred
An error occurred during execution; please try again later.
No Exception available
There is no stacktrace or any additional info on what is going on.
Please help me identify what I missed