Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.38 KB

UPGRADE-6.1.md

File metadata and controls

37 lines (27 loc) · 1.38 KB

UPGRADE FROM 6.0 to 6.1

All components

  • Deprecate requiring the "symfony/symfony" package; replace it with standalone components instead
  • Public and protected properties are now considered final; instead of overriding a property, consider setting its value in the constructor

Console

  • Deprecate Command::$defaultName and Command::$defaultDescription, use the AsCommand attribute instead

HttpKernel

  • Deprecate StreamedResponseListener, it's not needed anymore

Serializer

  • Deprecate ContextAwareNormalizerInterface, use NormalizerInterface instead
  • Deprecate ContextAwareDenormalizerInterface, use DenormalizerInterface instead
  • Deprecate ContextAwareEncoderInterface, use EncoderInterface instead
  • Deprecate ContextAwareDecoderInterface, use DecoderInterface instead
  • Deprecate supporting denormalization for AbstractUid in UidNormalizer, use one of AbstractUid child class instead
  • Deprecate denormalizing to an abstract class in UidNormalizer

Validator

  • Deprecate Constraint::$errorNames, use Constraint::ERROR_NAMES instead
  • Deprecate constraint ExpressionLanguageSyntax, use ExpressionSyntax instead
  • Implementing the ConstraintViolationInterface or ConstraintViolationListInterface without implementing the __toString() method is deprecated