Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

CHANGELOG.md 2.3 KiB

4 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. CHANGELOG
  2. =========
  3. 3.4.0
  4. -----
  5. * added `OptionsResolverIntrospector` to inspect options definitions inside an `OptionsResolver` instance
  6. * added array of types support in allowed types (e.g int[])
  7. 2.6.0
  8. -----
  9. * deprecated OptionsResolverInterface
  10. * [BC BREAK] removed "array" type hint from OptionsResolverInterface methods
  11. setRequired(), setAllowedValues(), addAllowedValues(), setAllowedTypes() and
  12. addAllowedTypes()
  13. * added OptionsResolver::setDefault()
  14. * added OptionsResolver::hasDefault()
  15. * added OptionsResolver::setNormalizer()
  16. * added OptionsResolver::isRequired()
  17. * added OptionsResolver::getRequiredOptions()
  18. * added OptionsResolver::isMissing()
  19. * added OptionsResolver::getMissingOptions()
  20. * added OptionsResolver::setDefined()
  21. * added OptionsResolver::isDefined()
  22. * added OptionsResolver::getDefinedOptions()
  23. * added OptionsResolver::remove()
  24. * added OptionsResolver::clear()
  25. * deprecated OptionsResolver::replaceDefaults()
  26. * deprecated OptionsResolver::setOptional() in favor of setDefined()
  27. * deprecated OptionsResolver::isKnown() in favor of isDefined()
  28. * [BC BREAK] OptionsResolver::isRequired() returns true now if a required
  29. option has a default value set
  30. * [BC BREAK] merged Options into OptionsResolver and turned Options into an
  31. interface
  32. * deprecated Options::overload() (now in OptionsResolver)
  33. * deprecated Options::set() (now in OptionsResolver)
  34. * deprecated Options::get() (now in OptionsResolver)
  35. * deprecated Options::has() (now in OptionsResolver)
  36. * deprecated Options::replace() (now in OptionsResolver)
  37. * [BC BREAK] Options::get() (now in OptionsResolver) can only be used within
  38. lazy option/normalizer closures now
  39. * [BC BREAK] removed Traversable interface from Options since using within
  40. lazy option/normalizer closures resulted in exceptions
  41. * [BC BREAK] removed Options::all() since using within lazy option/normalizer
  42. closures resulted in exceptions
  43. * [BC BREAK] OptionDefinitionException now extends LogicException instead of
  44. RuntimeException
  45. * [BC BREAK] normalizers are not executed anymore for unset options
  46. * normalizers are executed after validating the options now
  47. * [BC BREAK] an UndefinedOptionsException is now thrown instead of an
  48. InvalidOptionsException when non-existing options are passed