配置必须包含“适配器”。拉米纳纳斯框架的钥匙
reciénrealice el Modulo laminas/laminas-cache alaversión ^3.1.3 y al Mountso de ejecutar mi desarrollo me lanza el lanza el Siguiente错误:
Fatal error: Uncaught InvalidArgumentException: Configuration must contain a "adapter" key. in C:\xampp\htdocs\bisef\vendor\laminas\laminas-cache\src\Service\StorageAdapterFactory.php:85
miconfiguraciónen global.php es la siguiente:php es la siguiente:
'caches' => [
'FilesystemCache' => [
'adapter' => [
'name' => Filesystem::class,
'options' => [
// Store cached data in this directory.
'cache_dir' => './data/cache',
// Store cached data for 1 hour.
'ttl' => 60 * 60 * 1
],
],
'plugins' => [
[
'name' => 'serializer',
'options' => [
],
],
],
],
],
recién actualice el modulo laminas/laminas-cache a la versión ^3.1.3 y al momento de ejecutar mi desarrollo me lanza el siguiente error:
Fatal error: Uncaught InvalidArgumentException: Configuration must contain a "adapter" key. in C:\xampp\htdocs\bisef\vendor\laminas\laminas-cache\src\Service\StorageAdapterFactory.php:85
Mi configuración en global.php es la siguiente:
'caches' => [
'FilesystemCache' => [
'adapter' => [
'name' => Filesystem::class,
'options' => [
// Store cached data in this directory.
'cache_dir' => './data/cache',
// Store cached data for 1 hour.
'ttl' => 60 * 60 * 1
],
],
'plugins' => [
[
'name' => 'serializer',
'options' => [
],
],
],
],
],
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如错误消息所说,
适配器
键丢失。正确的配置应如下:
如果您使用多个缓存,并且需要将它们分开(如摘要所示),那么:
as said by the error message, the
adapter
key is missing.The correct configuration should the following:
In case you are using multiple caches and you need to separate them (as shown by your snippet), then: