This repository has been archived by the owner on Feb 6, 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 provides forwards compatibility features for the v2 series to allow users to update their code for use with v3 prior to an actual migration.
AbstractPluginManager
This patch modifies the
AbstractPluginManager
constructor to allow the following combination of arguments:ConfigInterface
argument (current behavior); used to configure the instance.ContainerInterface
argument (v3 behavior); sets the "parent" locator/"creation context"ContainerInterface
as first argument, array as second (v3 behavior); sets the "parent" locator/"creation context", and uses the second argument to configure the instance.These changes allow developers the ability to continue to use existing plugin managers when upgrading to v3 (though they will also need to implement a
validate()
method, which will be in the migration guide).The changes presented are backwards compatible (loosens typehint on initial argument; new, second argument is optional), and are based on changes being implemented in #59.
InvokableFactory
The
InvokableFactory
introduced in the develop branch is compatible with v2 as well, and this patch adapts it for use with v2. This will allow existing component refactors to retain changes that introduce theInvokableFactory
+ aliases.