flow-development-collection icon indicating copy to clipboard operation
flow-development-collection copied to clipboard

Make the concept of "supportedOptions" available to all

Open sorenmalling opened this issue 5 years ago • 2 comments

View and Validator (at least from Neos.Flow) uses the concept of $supportedOptions and have a method for validating given options.

In a project I find myself copying this great concept and found my self wondering, if it can be made available for other users of the Flow Framework?

And maybe used in AuthenticationProvide and we create a API for it

Options::fromArray(..$options)

similar to the work we do with Roles API in the #1939 task

sorenmalling avatar Sep 08 '20 08:09 sorenmalling

What about https://symfony.com/doc/current/components/options_resolver.html ? (didn't test)

bwaidelich avatar Sep 09 '20 14:09 bwaidelich

The symfony OptionResolver is quite nice. But if we use it in the core directly, we will gain another dependency. Especially the OptionResolver proved to be extremely stable during the last years, though.

fcool avatar Aug 31 '21 17:08 fcool