We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README.md
The README.md example does not work due to the lack of the ConfigProvider of the memory adapter being passed to the ConfigAggregator.
ConfigProvider
ConfigAggregator
Execution will fail, Memory adapter is not retrievable.
use Laminas\Cache\ConfigProvider; use Laminas\Cache\Service\StorageAdapterFactoryInterface; use Laminas\Cache\Storage\Adapter\Memory; use Laminas\ConfigAggregator\ConfigAggregator; use Laminas\ServiceManager\ServiceManager; $config = (new ConfigAggregator([ ConfigProvider::class, ]))->getMergedConfig(); $dependencies = $config['dependencies']; $container = new ServiceManager($dependencies); /** @var StorageAdapterFactoryInterface $storageFactory */ $storageFactory = $container->get(StorageAdapterFactoryInterface::class); $storage = $storageFactory->create(Memory::class); // ServiceNotFoundException
$storage variable contains an instance of the Memory adapter.
$storage
Memory
The text was updated successfully, but these errors were encountered:
The example should be removed from the readme file. Instead some links to the documentation should be added:
Sorry, something went wrong.
No branches or pull requests
Bug Report
Summary
The
README.md
example does not work due to the lack of theConfigProvider
of the memory adapter being passed to theConfigAggregator
.Current behavior
Execution will fail, Memory adapter is not retrievable.
How to reproduce
Expected behavior
$storage
variable contains an instance of theMemory
adapter.The text was updated successfully, but these errors were encountered: