1.4 KiB
1.4 KiB
UPGRADE FROM 5.0 to 5.1
Console
Command::setHidden()
is final since Symfony 5.1
Dotenv
- Deprecated passing
$usePutenv
argument to Dotenv's constructor, useDotenv::usePutenv()
instead.
EventDispatcher
- Deprecated
LegacyEventDispatcherProxy
. Use the event dispatcher without the proxy.
FrameworkBundle
- Deprecated passing a
RouteCollectionBuiler
toMicroKernelTrait::configureRoutes()
, type-hintRoutingConfigurator
instead - Deprecated not setting the "framework.router.utf8" configuration option as it will default to
true
in Symfony 6.0
HttpFoundation
- Deprecate
Response::create()
,JsonResponse::create()
,RedirectResponse::create()
, andStreamedResponse::create()
methods (use__construct()
instead)
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.
Routing
- Deprecated
RouteCollectionBuilder
in favor ofRoutingConfigurator
.
Yaml
- Deprecated using the
!php/object
and!php/const
tags without a value.