- The signature of method
NodeDefinition::setDeprecated()has been updated toNodeDefinition::setDeprecated(string $package, string $version, string $message). - The signature of method
BaseNode::setDeprecated()has been updated toBaseNode::setDeprecated(string $package, string $version, string $message). - Passing a null message to
BaseNode::setDeprecated()to un-deprecate a node is deprecated - Deprecated
BaseNode::getDeprecationMessage(), useBaseNode::getDeprecation()instead
Command::setHidden()is final since Symfony 5.1
- The signature of method
Definition::setDeprecated()has been updated toDefinition::setDeprecation(string $package, string $version, string $message). - The signature of method
Alias::setDeprecated()has been updated toAlias::setDeprecation(string $package, string $version, string $message). - The signature of method
DeprecateTrait::deprecate()has been updated toDeprecateTrait::deprecation(string $package, string $version, string $message). - Deprecated the
Psr\Container\ContainerInterfaceandSymfony\Component\DependencyInjection\ContainerInterfacealiases of theservice_containerservice, configure them explicitly instead. - Deprecated
Definition::getDeprecationMessage(), useDefinition::getDeprecation()instead. - Deprecated
Alias::getDeprecationMessage(), useAlias::getDeprecation()instead. - The
inline()function from the PHP-DSL has been deprecated, useinline_service()instead - The
ref()function from the PHP-DSL has been deprecated, useservice()instead
- Deprecated passing
$usePutenvargument to Dotenv's constructor, useDotenv::usePutenv()instead.
- Deprecated
LegacyEventDispatcherProxy. Use the event dispatcher without the proxy.
- Not configuring the
rounding_modeoption of thePercentTypeis deprecated. It will default to\NumberFormatter::ROUND_HALFUPin Symfony 6. - Not passing a rounding mode to the constructor of
PercentToLocalizedStringTransformeris deprecated. It will default to\NumberFormatter::ROUND_HALFUPin Symfony 6. - 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. - Added argument
callable|null $filtertoChoiceListFactoryInterface::createListFromChoices()andcreateListFromLoader()- not defining them is deprecated. - Using
Symfony\Component\Form\Extension\Validator\Util\ServerParamsclass is deprecated, use its parentSymfony\Component\Form\Util\ServerParamsinstead. - The
NumberToLocalizedStringTransformer::ROUND_*constants have been deprecated, use\NumberFormatter::ROUND_*instead.
- Deprecated passing a
RouteCollectionBuildertoMicroKernelTrait::configureRoutes(), type-hintRoutingConfiguratorinstead - Deprecated not setting the "framework.router.utf8" configuration option as it will default to
truein Symfony 6.0 - Deprecated
session.attribute_bagservice andsession.flash_bagservice.
- Deprecate
Response::create(),JsonResponse::create(),RedirectResponse::create(), andStreamedResponse::create()methods (use__construct()instead) - Made the Mime component an optional dependency
- Made
WarmableInterface::warmUp()return a list of classes or files to preload on PHP 7.4+ not returning an array is deprecated - Deprecated support for
service:actionsyntax to reference controllers. UseserviceOrFqcn::methodinstead.
- The component has been deprecated, use
EnglishInflectorfrom the String component instead.
- Deprecated passing Mailgun headers without their "h:" prefix.
- Deprecated the
SesApiTransportclass. It has been replaced by SesApiAsyncAwsTransport Runcomposer require async-aws/sesto use the new classes. - Deprecated the
SesHttpTransportclass. It has been replaced by SesHttpAsyncAwsTransport Runcomposer require async-aws/sesto use the new classes.
- 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.
- Deprecated not declaring a
\Throwableargument inRetryStrategyInterface::isRetryable() - Deprecated not declaring a
\Throwableargument inRetryStrategyInterface::getWaitingTime()
- [BC BREAK] The
ChatMessage::fromNotification()method's$recipientand$transportarguments were removed. - [BC BREAK] The
EmailMessage::fromNotification()andSmsMessage::fromNotification()methods'$transportargument was removed.
- The signature of method
OptionsResolver::setDeprecated()has been updated toOptionsResolver::setDeprecated(string $option, string $package, string $version, $message). - Deprecated
OptionsResolverIntrospector::getDeprecationMessage(), useOptionsResolverIntrospector::getDeprecation()instead.
- Deprecated the
@expectedDeprecationannotation, use theExpectDeprecationTrait::expectDeprecation()method instead.
- Deprecated
RouteCollectionBuilderin favor ofRoutingConfigurator. - Added argument
$prioritytoRouteCollection::add() - Deprecated the
RouteCompiler::REGEX_DELIMITERconstant
-
Deprecated
anonymous: lazyin favor oflazy: trueBefore
security: firewalls: main: anonymous: lazy
After
security: firewalls: main: anonymous: true lazy: true
-
Marked the
AnonymousFactory,FormLoginFactory,FormLoginLdapFactory,GuardAuthenticationFactory,HttpBasicFactory,HttpBasicLdapFactory,JsonLoginFactory,JsonLoginLdapFactory,RememberMeFactory,RemoteUserFactoryandX509Factoryas@internal. Instead of extending these classes, create your own implementation based onSecurityFactoryInterface.
-
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
LogoutSuccessHandlerInterfaceandLogoutHandlerInterface, register a listener on theLogoutEventevent instead. -
Deprecated
DefaultLogoutSuccessHandlerin favor ofDefaultLogoutListener. -
Deprecated
RememberMeServicesInterfaceimplementations without alogout(Request $request, Response $response, TokenInterface $token)method.
-
Added support for parsing numbers prefixed with
0oas octal numbers. -
Deprecated support for parsing numbers starting with
0as octal numbers. They will be parsed as strings as of Symfony 6.0. Prefix numbers with0oso that they are parsed as octal numbers.Before:
Yaml::parse('072');After:
Yaml::parse('0o72'); -
Deprecated using the
!php/objectand!php/consttags without a value.