This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/UPGRADE-4.1.md
Billie Thompson cf0410812e
[Validator] Html5 Email Validation
Currently we only support a very loose validation. There is now a
standard HTML5 element with matching regex. This will add the ability
to set a `mode` on the email validator. The mode will change the
validation that is applied to the field as a whole.

These modes are:

* loose: The pattern from previous Symfony versions (default)
* strict: Strictly matching the RFC
* html5: The regex used for the HTML5 Element

Deprecates the `strict=true` parameter in favour of `mode='strict'`
2017-12-11 19:48:55 +00:00

1.1 KiB

UPGRADE FROM 4.0 to 4.1

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.