I think it's important we be able to reflect the options of a configurable object without instantiating it. I propose a static method called getOptionsBag that returns a "bag" with all the constraints on the options array configured. I've created a quick gist for discussion:
https://gist.github.com/813559 k -- Kris Wallsmith | Release Manager [email protected] Portland, Oregon USA http://twitter.com/kriswallsmith On Feb 6, 2011, at 9:33 AM, Bernhard Schussek wrote: > 2011/2/6 ryan weaver <[email protected]>: >> For unsupported options, could we pass the options array by reference and >> have the Option class unset each entry? By the end of setting the options, >> we'd have an array of "extra" options. One way or another, I think #2 could >> still complain about unsupported options (perhaps with a touch of manual >> work in each field). > > This sounds like a very good idea! Thanks Ryan. > > Bernhard > -- > Software Architect & Engineer > Blog: http://webmozarts.com > Twitter: http://twitter.com/webmozart > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
