Hi how to properly use laminas-cache 3.x
I’m using Laminas ServiceManager but not MVC
When doing this
$storageFactory = $container->get(\Laminas\Cache\Service\StorageAdapterFactoryInterface::class);
$storageFactory->create("filesystem");
It complains that filesystem is not found
Unable to resolve service "filesystem" to a factory; are you certain you provided it during configuration?
laminas package installed
laminas/laminas-cache 3.6.0 Caching implementation with a variety of storage options, as well as codified caching strategies fo...
laminas/laminas-cache-storage-adapter-filesystem 2.3.0 Laminas cache adapter for filesystem
laminas/laminas-config-aggregator 1.11.0 Lightweight library for collecting and merging configuration from different sources
laminas/laminas-escaper 2.12.0 Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs
laminas/laminas-eventmanager 3.6.0 Trigger and listen to events within a PHP application
laminas/laminas-filter 2.23.0 Programmatically filter and normalize data and files
laminas/laminas-form 3.5.0 Validate and display simple and complex forms, casting forms to business objects and vice versa
laminas/laminas-hydrator 4.8.0 Serialize objects to arrays, and vice versa
laminas/laminas-i18n 2.19.0 Provide translations for your application, and filter and validate internationalized values
laminas/laminas-inputfilter 2.22.0 Normalize and validate input sets from the web, APIs, the CLI, and more, including files
laminas/laminas-json 3.5.0 provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP
laminas/laminas-log 2.15.2 Robust, composite logger with filtering, formatting, and PSR-3 support
laminas/laminas-navigation 2.16.0 Manage trees of pointers to web pages in order to build navigation systems
laminas/laminas-serializer 2.14.0 Serialize and deserialize PHP structures to a variety of representations
laminas/laminas-servicemanager 3.19.0 Factory-Driven Dependency Injection Container
laminas/laminas-stdlib 3.15.0 SPL extensions, array utilities, error handlers, and more
laminas/laminas-validator 2.26.0 Validation classes for a wide range of domains, and the ability to chain validators to create compl...
laminas/laminas-view 2.24.0 Flexible view layer supporting and providing multiple view layers, helpers, and more
Is there another config I need to add to service factory load the filesystem ? Example in Adapters - laminas-cache - Laminas Docs is not working
Do I need to create my own factory for adapter ?
Loaded service
[service] => Array
(
[factories] => Array
(
[FormAnnotationBuilder] => Laminas\Form\Annotation\BuilderAbstractFactory
[FormAttributeBuilder] => Laminas\Form\Annotation\BuilderAbstractFactory
[FormElementManager] => Laminas\Form\FormElementManagerFactory
[Laminas\Cache\Storage\AdapterPluginManager] => Laminas\Cache\Service\StorageAdapterPluginManagerFactory
[Laminas\Cache\Storage\PluginManager] => Laminas\Cache\Service\StoragePluginManagerFactory
[Laminas\Cache\Service\StoragePluginFactory] => Laminas\Cache\Service\StoragePluginFactoryFactory
[Laminas\Cache\Service\StoragePluginFactoryInterface] => Laminas\Cache\Service\StoragePluginFactoryFactory
[Laminas\Cache\Service\StorageAdapterFactory] => Laminas\Cache\Service\StorageAdapterFactoryFactory
[Laminas\Cache\Service\StorageAdapterFactoryInterface] => Laminas\Cache\Service\StorageAdapterFactoryFactory
[Laminas\Cache\Command\DeprecatedStorageFactoryConfigurationCheckCommand] => Laminas\Cache\Command\DeprecatedStorageFactoryConfigurationCheckCommandFactory
)
[abstract_factories] => Array
(
[0] => Laminas\Cache\Service\StorageCacheAbstractServiceFactory
)
[aliases] => Array
(
[Laminas\Form\Annotation\AnnotationBuilder] => FormAnnotationBuilder
[Laminas\Form\Annotation\AttributeBuilder] => FormAttributeBuilder
[Laminas\Form\FormElementManager] => FormElementManager
)
)
)