-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
Refactor FilterChain
#208
Refactor FilterChain
#208
Conversation
Refactors filter chain to require the plugin manager as a constructor dependency and… - Drops `setOptions` - Removes inheritance - Implement newly added `FilterChainInterface` - Remove the constant `DEFAULT_PRIORITY` - Drops getter and setter for the plugin manager - Drops the `plugin` method - Drops `getFilter` - Stops pretending that chains can be serialized Introduces `ImmutableFilterChain` which is effectively the same as `FilterChain` but immutable and lacks the `merge` method which has limited use cases. `ImmutableFilterChain` and `FilterChainInterface` can be backported to 2.x so that libs can switch to it (input-filter, form etc) without breaking BC _(Possibly)_ Signed-off-by: George Steel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like deleting code, therefore: great improvement! 👍🏻
Signed-off-by: George Steel <[email protected]>
@froschdesign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! 👍🏻
See laminas#208 Signed-off-by: George Steel <[email protected]>
Refactors filter chain to require the plugin manager as a constructor dependency and…
setOptions
FilterChainInterface
DEFAULT_PRIORITY
plugin
methodgetFilter
Introduces
ImmutableFilterChain
which is effectively the same asFilterChain
but immutable and lacks themerge
method which has limited use cases.ImmutableFilterChain
andFilterChainInterface
can be backported to 2.x so that libs can switch to it (input-filter, form etc) without breaking BC (Possibly)Docs are still todo but feedback appreciated 👍