This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/UPGRADE-5.1.md

33 lines
901 B
Markdown

UPGRADE FROM 5.0 to 5.1
=======================
EventDispatcher
---------------
* Deprecated `LegacyEventDispatcherProxy`. Use the event dispatcher without the proxy.
FrameworkBundle
---------------
* Deprecated passing a `RouteCollectionBuiler` to `MicroKernelTrait::configureRoutes()`, type-hint `RoutingConfigurator` instead
HttpFoundation
--------------
* Deprecate `Response::create()`, `JsonResponse::create()`,
`RedirectResponse::create()`, and `StreamedResponse::create()` methods (use
`__construct()` instead)
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.
Routing
-------
* Deprecated `RouteCollectionBuilder` in favor of `RoutingConfigurator`.