2019-11-10 16:23:41 +00:00
UPGRADE FROM 5.0 to 5.1
=======================
2020-01-20 15:05:06 +00:00
Console
-------
* `Command::setHidden()` is final since Symfony 5.1
2020-01-11 14:48:32 +00:00
Dotenv
------
* Deprecated passing `$usePutenv` argument to Dotenv's constructor, use `Dotenv::usePutenv()` instead.
2019-12-13 21:39:36 +00:00
EventDispatcher
---------------
* Deprecated `LegacyEventDispatcherProxy` . Use the event dispatcher without the proxy.
2019-07-25 17:09:28 +01:00
Form
----
* Implementing the `FormConfigInterface` without implementing the `getIsEmptyCallback()` method
is deprecated. The method will be added to the interface in 6.0.
* Implementing the `FormConfigBuilderInterface` without implementing the `setIsEmptyCallback()` method
is deprecated. The method will be added to the interface in 6.0.
2019-04-07 21:08:39 +01:00
* Added argument `callable|null $filter` to `ChoiceListFactoryInterface::createListFromChoices()` and `createListFromLoader()` - not defining them is deprecated.
2019-07-25 17:09:28 +01:00
2019-11-10 16:23:41 +00:00
FrameworkBundle
---------------
2019-12-07 15:49:34 +00:00
* Deprecated passing a `RouteCollectionBuiler` to `MicroKernelTrait::configureRoutes()` , type-hint `RoutingConfigurator` instead
2020-01-11 18:12:40 +00:00
* Deprecated *not* setting the "framework.router.utf8" configuration option as it will default to `true` in Symfony 6.0
2019-11-10 16:23:41 +00:00
2019-12-03 06:17:06 +00:00
HttpFoundation
--------------
* Deprecate `Response::create()` , `JsonResponse::create()` ,
`RedirectResponse::create()` , and `StreamedResponse::create()` methods (use
`__construct()` instead)
2020-02-20 19:50:53 +00:00
* Made the Mime component an optional dependency
2019-12-03 06:17:06 +00:00
2020-01-21 16:10:46 +00:00
Messenger
---------
* Deprecated AmqpExt transport. It has moved to a separate package. Run `composer require symfony/amqp-messenger` to use the new classes.
* Deprecated Doctrine transport. It has moved to a separate package. Run `composer require symfony/doctrine-messenger` to use the new classes.
* Deprecated RedisExt transport. It has moved to a separate package. Run `composer require symfony/redis-messenger` to use the new classes.
2019-12-10 15:47:33 +00:00
* Deprecated use of invalid options in Redis and AMQP connections.
2020-01-21 16:10:46 +00:00
2020-01-02 10:02:56 +00:00
Notifier
--------
* [BC BREAK] The `ChatMessage::fromNotification()` method's `$recipient` and `$transport`
arguments were removed.
* [BC BREAK] The `EmailMessage::fromNotification()` and `SmsMessage::fromNotification()`
methods' `$transport` argument was removed.
2020-03-11 22:37:55 +00:00
PhpUnitBridge
-------------
* Deprecated the `@expectedDeprecation` annotation, use the `ExpectDeprecationTrait::expectDeprecation()` method instead.
2019-11-10 16:23:41 +00:00
Routing
-------
* Deprecated `RouteCollectionBuilder` in favor of `RoutingConfigurator` .
2020-02-05 17:53:43 +00:00
* Added argument `$priority` to `RouteCollection::add()`
2020-02-25 10:55:47 +00:00
* Deprecated the `RouteCompiler::REGEX_DELIMITER` constant
2020-01-16 19:30:36 +00:00
2020-02-28 11:18:46 +00:00
Security
--------
* Deprecated `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute.
*before*
```twig
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
< a href = "" > Exit impersonation< / a >
{% endif %}
```
*after*
```twig
{% if is_granted('IS_IMPERSONATOR') %}
< a href = "" > Exit impersonation< / a >
{% endif %}
```
2020-01-16 19:30:36 +00:00
Yaml
----
* Deprecated using the `!php/object` and `!php/const` tags without a value.