This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch accomplishes a number of tasks in order to better faciliate usage of the package as a standalone component, in both Expressive and zend-mvc applications. Specifically:
PatternPluginManager
to accept$options
, cast them toPatternOptions
instances, and inject them in created plugins. Doing so allows moving that logic out of thePatternFactory
, and better facilitates re-use of the plugin manager.StorageCacheFactory
andStorageCacheAbstractServiceFactory
to seed theStorageFactory
with plugin manager/adapter plugin manager instances pulled from the container provided at invocation, if available (falling back to creating new instances with the provided container as the parent container).These last two changes allow configuring plugin managers with custom plugins, which then become available to the cache storage when requested.
Finally, this patch adds:
Zend\Cache\ConfigProvider
, which maps the abstract service factory and all plugin managers by default.Zend\Cache\Module
, which does the same, but for zend-mvc contexts.These changes are backwards compatible, but will make the component a better citizen of zend-mvc v3 and Expressive applications.