Command::setHidden()is final since Symfony 5.1
- Deprecated passing
$usePutenvargument to Dotenv's constructor, useDotenv::usePutenv()instead.
- Deprecated
LegacyEventDispatcherProxy. Use the event dispatcher without the proxy.
- Implementing the
FormConfigInterfacewithout implementing thegetIsEmptyCallback()method is deprecated. The method will be added to the interface in 6.0. - Implementing the
FormConfigBuilderInterfacewithout implementing thesetIsEmptyCallback()method is deprecated. The method will be added to the interface in 6.0.
- Deprecated passing a
RouteCollectionBuilertoMicroKernelTrait::configureRoutes(), type-hintRoutingConfiguratorinstead - Deprecated not setting the "framework.router.utf8" configuration option as it will default to
truein Symfony 6.0
- Deprecate
Response::create(),JsonResponse::create(),RedirectResponse::create(), andStreamedResponse::create()methods (use__construct()instead) - Made the Mime component an optional dependency
- Deprecated AmqpExt transport. It has moved to a separate package. Run
composer require symfony/amqp-messengerto use the new classes. - Deprecated Doctrine transport. It has moved to a separate package. Run
composer require symfony/doctrine-messengerto use the new classes. - Deprecated RedisExt transport. It has moved to a separate package. Run
composer require symfony/redis-messengerto use the new classes. - Deprecated use of invalid options in Redis and AMQP connections.
- [BC BREAK] The
ChatMessage::fromNotification()method's$recipientand$transportarguments were removed. - [BC BREAK] The
EmailMessage::fromNotification()andSmsMessage::fromNotification()methods'$transportargument was removed.
- Deprecated
RouteCollectionBuilderin favor ofRoutingConfigurator. - Added argument
$prioritytoRouteCollection::add() - Deprecated the
RouteCompiler::REGEX_DELIMITERconstant
-
Deprecated
ROLE_PREVIOUS_ADMINrole in favor ofIS_IMPERSONATORattribute.before
{% if is_granted('ROLE_PREVIOUS_ADMIN') %} <a href="">Exit impersonation</a> {% endif %}after
{% if is_granted('IS_IMPERSONATOR') %} <a href="">Exit impersonation</a> {% endif %}
- Deprecated using the
!php/objectand!php/consttags without a value.