Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Add the current class scope to custom mutator functions#20

Open
cewald wants to merge 1 commit intovuestorefront:masterfrom
icmaa:feature/add-class-scope-to-custom-filter-mutator-methods
Open

Add the current class scope to custom mutator functions#20
cewald wants to merge 1 commit intovuestorefront:masterfrom
icmaa:feature/add-class-scope-to-custom-filter-mutator-methods

Conversation

@cewald
Copy link
Copy Markdown

@cewald cewald commented Jan 18, 2021

This way you could use the default RequestBody class scope to e.g. use extractFirstValueMutator in a custom-filter's value mutator without duplicating it or use other magic based on the current RequestBody class instance.

For example: If I'd like to use the default extractFirstValueMutator in a custom filter I currently need to duplicate this functionality. With the scope added to the message using call we can just write smth like:

mutator () { return this.extractFirstValueMutator(value) }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant