2017-11-23 10:49:18 +00:00
UPGRADE FROM 4.0 to 4.1
=======================
2017-04-04 15:56:32 +01:00
Config
------
* Implementing `ParentNodeDefinitionInterface` without the `getChildNodeDefinitions()` method
2018-02-19 11:42:56 +00:00
is deprecated.
2017-04-04 15:56:32 +01:00
2017-10-01 21:31:12 +01:00
EventDispatcher
---------------
2018-02-19 11:42:56 +00:00
* The `TraceableEventDispatcherInterface` has been deprecated.
2017-10-01 21:31:12 +01:00
2017-11-10 08:09:11 +00:00
FrameworkBundle
---------------
2018-02-19 11:42:56 +00:00
* A `RouterInterface` that does not implement the `WarmableInterface` is deprecated.
* The `RequestDataCollector` class has been deprecated. Use the `Symfony\Component\HttpKernel\DataCollector\RequestDataCollector` class instead.
2017-11-10 08:09:11 +00:00
2017-12-12 19:03:06 +00:00
HttpFoundation
--------------
2018-02-19 11:42:56 +00:00
* Passing the file size to the constructor of the `UploadedFile` class is deprecated.
2017-12-12 19:03:06 +00:00
* The `getClientSize()` method of the `UploadedFile` class is deprecated. Use `getSize()` instead.
2017-11-23 10:49:18 +00:00
Security
--------
2018-02-19 11:42:56 +00:00
* The `ContextListener::setLogoutOnUserChange()` method is deprecated.
2017-12-11 09:34:00 +00:00
* Using the `AdvancedUserInterface` is now deprecated. To use the existing
functionality, create a custom user-checker based on the
2018-02-19 11:42:56 +00:00
`Symfony\Component\Security\Core\User\UserChecker` .
2017-11-23 10:49:18 +00:00
SecurityBundle
--------------
2018-02-19 11:42:56 +00:00
* The `logout_on_user_change` firewall option is deprecated.
* The `SecurityUserValueResolver` class is deprecated, use
2017-12-20 14:22:44 +00:00
`Symfony\Component\Security\Http\Controller\UserValueResolver` instead.
2017-11-23 10:49:18 +00:00
Translation
-----------
2018-02-19 11:42:56 +00:00
* The `FileDumper::setBackup()` method is deprecated.
* The `TranslationWriter::disableBackup()` method is deprecated.
2017-10-30 06:24:47 +00:00
2018-01-12 21:15:14 +00:00
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.
2017-10-05 16:50:07 +01:00
Validator
--------
2018-02-19 11:42:56 +00:00
* The `Email::__construct()` 'strict' property is deprecated. Use 'mode'=>"strict" instead.
* Calling `EmailValidator::__construct()` method with a boolean parameter is deprecated, use `EmailValidator("strict")` instead.
* Deprecated the `checkDNS` and `dnsMessage` options of the `Url` constraint.
2017-10-05 16:50:07 +01:00
2017-10-30 06:24:47 +00:00
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` .