2017-11-23 10:49:18 +00:00
|
|
|
UPGRADE FROM 4.x to 5.0
|
|
|
|
=======================
|
|
|
|
|
2017-04-04 15:56:32 +01:00
|
|
|
Config
|
|
|
|
------
|
|
|
|
|
|
|
|
* Added the `getChildNodeDefinitions()` method to `ParentNodeDefinitionInterface`.
|
2018-03-03 10:07:55 +00:00
|
|
|
* The `Processor` class has been made final
|
2017-04-04 15:56:32 +01:00
|
|
|
|
2017-12-05 11:42:44 +00:00
|
|
|
Console
|
|
|
|
-------
|
|
|
|
|
|
|
|
* Removed the `setCrossingChar()` method in favor of the `setDefaultCrossingChar()` method in `TableStyle`.
|
|
|
|
|
2018-03-22 11:53:13 +00:00
|
|
|
DependencyInjection
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
* Removed the `TypedReference::canBeAutoregistered()` and `TypedReference::getRequiringClass()` methods.
|
|
|
|
|
2017-10-01 21:31:12 +01:00
|
|
|
EventDispatcher
|
|
|
|
---------------
|
|
|
|
|
|
|
|
* The `TraceableEventDispatcherInterface` has been removed.
|
|
|
|
|
2017-11-10 08:09:11 +00:00
|
|
|
FrameworkBundle
|
|
|
|
---------------
|
|
|
|
|
2018-02-08 02:17:50 +00:00
|
|
|
* Removed support for `bundle:controller:action` and `service:action` syntaxes to reference controllers. Use `serviceOrFqcn::method`
|
|
|
|
instead where `serviceOrFqcn` is either the service ID when using controllers as services or the FQCN of the controller.
|
|
|
|
|
|
|
|
Before:
|
|
|
|
|
|
|
|
```yml
|
|
|
|
bundle_controller:
|
|
|
|
path: /
|
|
|
|
defaults:
|
|
|
|
_controller: FrameworkBundle:Redirect:redirect
|
|
|
|
|
|
|
|
service_controller:
|
|
|
|
path: /
|
|
|
|
defaults:
|
|
|
|
_controller: app.my_controller:myAction
|
|
|
|
```
|
|
|
|
|
|
|
|
After:
|
|
|
|
|
|
|
|
```yml
|
|
|
|
bundle_controller:
|
|
|
|
path: /
|
|
|
|
defaults:
|
|
|
|
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
|
|
|
|
|
|
|
|
service_controller:
|
|
|
|
path: /
|
|
|
|
defaults:
|
|
|
|
_controller: app.my_controller::myAction
|
2018-02-23 08:25:41 +00:00
|
|
|
```
|
2018-02-08 02:17:50 +00:00
|
|
|
|
2018-02-23 08:21:43 +00:00
|
|
|
* Removed `Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser`.
|
|
|
|
* Warming up a router in `RouterCacheWarmer` that does not implement the `WarmableInterface` is not supported anymore.
|
2017-04-15 14:18:24 +01:00
|
|
|
* The `RequestDataCollector` class has been removed. 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
|
|
|
|
--------------
|
|
|
|
|
|
|
|
* The `$size` argument of the `UploadedFile` constructor has been removed.
|
|
|
|
* The `getClientSize()` method of the `UploadedFile` class has been removed.
|
2018-03-16 14:42:26 +00:00
|
|
|
* The `getSession()` method of the `Request` class throws an exception when session is null.
|
2017-12-12 19:03:06 +00:00
|
|
|
|
2017-11-23 10:49:18 +00:00
|
|
|
Security
|
|
|
|
--------
|
|
|
|
|
|
|
|
* The `ContextListener::setLogoutOnUserChange()` method has been removed.
|
2017-12-11 09:34:00 +00:00
|
|
|
* The `Symfony\Component\Security\Core\User\AdvancedUserInterface` has been removed.
|
2017-11-23 10:49:18 +00:00
|
|
|
|
|
|
|
SecurityBundle
|
|
|
|
--------------
|
|
|
|
|
|
|
|
* The `logout_on_user_change` firewall option has been removed.
|
2018-02-27 13:18:33 +00:00
|
|
|
* The `switch_user.stateless` firewall option has been removed.
|
2017-12-20 14:22:44 +00:00
|
|
|
* The `SecurityUserValueResolver` class has been removed.
|
2017-11-23 10:49:18 +00:00
|
|
|
|
|
|
|
Translation
|
|
|
|
-----------
|
|
|
|
|
|
|
|
* The `FileDumper::setBackup()` method has been removed.
|
|
|
|
* The `TranslationWriter::disableBackup()` method has been removed.
|
2017-10-30 06:24:47 +00:00
|
|
|
|
2018-01-12 21:15:14 +00:00
|
|
|
TwigBundle
|
|
|
|
----------
|
|
|
|
|
|
|
|
* The default value (`false`) of the `twig.strict_variables` configuration option has been changed to `%kernel.debug%`.
|
|
|
|
|
2017-10-05 16:50:07 +01:00
|
|
|
Validator
|
|
|
|
--------
|
|
|
|
|
|
|
|
* The `Email::__construct()` 'strict' property has been removed. Use 'mode'=>"strict" instead.
|
|
|
|
* Calling `EmailValidator::__construct()` method with a boolean parameter has been removed, use `EmailValidator("strict")` instead.
|
2017-12-15 13:47:48 +00:00
|
|
|
* Removed the `checkDNS` and `dnsMessage` options from the `Url` constraint.
|
2017-10-05 16:50:07 +01:00
|
|
|
|
2017-10-30 06:24:47 +00:00
|
|
|
Workflow
|
|
|
|
--------
|
|
|
|
|
|
|
|
* `add` method has been removed use `addWorkflow` method in `Workflow\Registry` instead.
|
|
|
|
* `SupportStrategyInterface` has been removed, use `WorkflowSupportStrategyInterface` instead.
|
|
|
|
* `ClassInstanceSupportStrategy` has been removed, use `InstanceOfSupportStrategy` instead.
|