Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.32 KB

UPGRADE-4.1.md

File metadata and controls

39 lines (26 loc) · 1.32 KB

UPGRADE FROM 4.0 to 4.1

HttpFoundation

  • Passing the file size to the constructor of the UploadedFile class is deprecated and won't be supported anymore in 5.0.

  • The getClientSize() method of the UploadedFile class is deprecated. Use getSize() instead.

Security

  • The ContextListener::setLogoutOnUserChange() method is deprecated and will be removed in 5.0.

SecurityBundle

  • The logout_on_user_change firewall option is deprecated and will be removed in 5.0.

Translation

  • The FileDumper::setBackup() method is deprecated and will be removed in 5.0.
  • The TranslationWriter::disableBackup() method is deprecated and will be removed in 5.0.

Validator

  • The Email::__construct() 'strict' property is deprecated and will be removed in 5.0. Use 'mode'=>"strict" instead.
  • Calling EmailValidator::__construct() method with a boolean parameter is deprecated and will be removed in 5.0, use EmailValidator("strict") instead.

Workflow

  • Deprecated the add method in favor of the addWorkflow method in Workflow\Registry.
  • Deprecated SupportStrategyInterface in favor of WorkflowSupportStrategyInterface.
  • Deprecated the class ClassInstanceSupportStrategy in favor of the class InstanceOfSupportStrategy.