This PR was squashed before being merged into the 4.1-dev branch (closes #25516).
Discussion
----------
[Validator] Deprecated "checkDNS" option in Url constraint
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | #23538
| License | MIT
| Doc PR | https://github.com/symfony/symfony-docs/pull/8921
Commits
-------
70d15caf4f
[Validator] Deprecated "checkDNS" option in Url constraint
1.6 KiB
1.6 KiB
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 theUploadedFile
class is deprecated. UsegetSize()
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. - The
SecurityUserValueResolver
class is deprecated and will be removed in 5.0, useSymfony\Component\Security\Http\Controller\UserValueResolver
instead.
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, useEmailValidator("strict")
instead. - Deprecated the
checkDNS
anddnsMessage
options of theUrl
constraint. They will be removed in 5.0.
Workflow
- Deprecated the
add
method in favor of theaddWorkflow
method inWorkflow\Registry
. - Deprecated
SupportStrategyInterface
in favor ofWorkflowSupportStrategyInterface
. - Deprecated the class
ClassInstanceSupportStrategy
in favor of the classInstanceOfSupportStrategy
.