68 lines
2.5 KiB
Markdown
68 lines
2.5 KiB
Markdown
UPGRADE FROM 4.0 to 4.1
|
|
=======================
|
|
|
|
Config
|
|
------
|
|
|
|
* Implementing `ParentNodeDefinitionInterface` without the `getChildNodeDefinitions()` method
|
|
is deprecated and will be unsupported in 5.0.
|
|
|
|
EventDispatcher
|
|
---------------
|
|
|
|
* The `TraceableEventDispatcherInterface` has been deprecated and will be removed in 5.0.
|
|
|
|
FrameworkBundle
|
|
---------------
|
|
|
|
* A `RouterInterface` that does not implement the `WarmableInterface` is deprecated and will not be supported in Symfony 5.0.
|
|
|
|
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.
|
|
* Using the `AdvancedUserInterface` is now deprecated. To use the existing
|
|
functionality, create a custom user-checker based on the
|
|
`Symfony\Component\Security\Core\User\UserChecker`. This functionality will
|
|
be removed in Symfony 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, use
|
|
`Symfony\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.
|
|
|
|
TwigBundle
|
|
----------
|
|
|
|
* Deprecated relying on the default value (`false`) of the `twig.strict_variables` configuration option. You should use `%kernel.debug%` explicitly instead, which will be the new default 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.
|
|
* Deprecated the `checkDNS` and `dnsMessage` options of the `Url` constraint. They will be removed in 5.0.
|
|
|
|
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`.
|