76 lines
2.6 KiB
Markdown
76 lines
2.6 KiB
Markdown
UPGRADE FROM 5.x to 6.0
|
|
=======================
|
|
|
|
Console
|
|
-------
|
|
|
|
* `Command::setHidden()` has a default value (`true`) for `$hidden` parameter
|
|
|
|
DependencyInjection
|
|
-------------------
|
|
|
|
* The signature of method `Definition::setDeprecated()` has been updated to `Definition::setDeprecation(string $package, string $version, string $message)`.
|
|
* The signature of method `Alias::setDeprecated()` has been updated to `Alias::setDeprecation(string $package, string $version, string $message)`.
|
|
* The signature of method `DeprecateTrait::deprecate()` has been updated to `DeprecateTrait::deprecation(string $package, string $version, string $message)`.
|
|
|
|
Dotenv
|
|
------
|
|
|
|
* Removed argument `$usePutenv` from Dotenv's constructor, use `Dotenv::usePutenv()` instead.
|
|
|
|
EventDispatcher
|
|
---------------
|
|
|
|
* Removed `LegacyEventDispatcherProxy`. Use the event dispatcher without the proxy.
|
|
|
|
Form
|
|
----
|
|
|
|
* Added the `getIsEmptyCallback()` method to the `FormConfigInterface`.
|
|
* Added the `setIsEmptyCallback()` method to the `FormConfigBuilderInterface`.
|
|
* Added argument `callable|null $filter` to `ChoiceListFactoryInterface::createListFromChoices()` and `createListFromLoader()`.
|
|
|
|
FrameworkBundle
|
|
---------------
|
|
|
|
* `MicroKernelTrait::configureRoutes()` is now always called with a `RoutingConfigurator`
|
|
* The "framework.router.utf8" configuration option defaults to `true`
|
|
* Removed `session.attribute_bag` service and `session.flash_bag` service.
|
|
|
|
HttpFoundation
|
|
--------------
|
|
|
|
* Removed `Response::create()`, `JsonResponse::create()`,
|
|
`RedirectResponse::create()`, and `StreamedResponse::create()` methods (use
|
|
`__construct()` instead)
|
|
|
|
HttpKernel
|
|
----------
|
|
|
|
* Removed support for `service:action` syntax to reference controllers. Use `serviceOrFqcn::method` instead.
|
|
|
|
Messenger
|
|
---------
|
|
|
|
* Removed AmqpExt transport. Run `composer require symfony/amqp-messenger` to keep the transport in your application.
|
|
* Removed Doctrine transport. Run `composer require symfony/doctrine-messenger` to keep the transport in your application.
|
|
* Removed RedisExt transport. Run `composer require symfony/redis-messenger` to keep the transport in your application.
|
|
* Use of invalid options in Redis and AMQP connections now throws an error.
|
|
|
|
PhpUnitBridge
|
|
-------------
|
|
|
|
* Removed support for `@expectedDeprecation` annotations, use the `ExpectDeprecationTrait::expectDeprecation()` method instead.
|
|
|
|
Routing
|
|
-------
|
|
|
|
* Removed `RouteCollectionBuilder`.
|
|
* Added argument `$priority` to `RouteCollection::add()`
|
|
* Removed the `RouteCompiler::REGEX_DELIMITER` constant
|
|
|
|
Security
|
|
--------
|
|
|
|
* Removed `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute
|