- 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\ContainerInterface
andSymfony\Component\DependencyInjection\ContainerInterface
aliases of theservice_container
service, 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
$usePutenv
argument to Dotenv's constructor, useDotenv::usePutenv()
instead.
- Deprecated
LegacyEventDispatcherProxy
. Use the event dispatcher without the proxy.
- Not configuring the
rounding_mode
option of thePercentType
is deprecated. It will default to\NumberFormatter::ROUND_HALFUP
in Symfony 6. - Not passing a rounding mode to the constructor of
PercentToLocalizedStringTransformer
is deprecated. It will default to\NumberFormatter::ROUND_HALFUP
in Symfony 6. - Implementing the
FormConfigInterface
without implementing thegetIsEmptyCallback()
method is deprecated. The method will be added to the interface in 6.0. - Implementing the
FormConfigBuilderInterface
without implementing thesetIsEmptyCallback()
method is deprecated. The method will be added to the interface in 6.0. - Added argument
callable|null $filter
toChoiceListFactoryInterface::createListFromChoices()
andcreateListFromLoader()
- not defining them is deprecated. - Using
Symfony\Component\Form\Extension\Validator\Util\ServerParams
class is deprecated, use its parentSymfony\Component\Form\Util\ServerParams
instead. - The
NumberToLocalizedStringTransformer::ROUND_*
constants have been deprecated, use\NumberFormatter::ROUND_*
instead.
- Deprecated passing a
RouteCollectionBuilder
toMicroKernelTrait::configureRoutes()
, type-hintRoutingConfigurator
instead - Deprecated not setting the "framework.router.utf8" configuration option as it will default to
true
in Symfony 6.0 - Deprecated
session.attribute_bag
service andsession.flash_bag
service.
- 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:action
syntax to reference controllers. UseserviceOrFqcn::method
instead.
- The component has been deprecated, use
EnglishInflector
from the String component instead.
- Deprecated the
SesApiTransport
class. It has been replaced by SesApiAsyncAwsTransport Runcomposer require async-aws/ses
to use the new classes. - Deprecated the
SesHttpTransport
class. It has been replaced by SesHttpAsyncAwsTransport Runcomposer require async-aws/ses
to use the new classes.
- 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. - Deprecated use of invalid options in Redis and AMQP connections.
- Deprecated not declaring a
\Throwable
argument inRetryStrategyInterface::isRetryable()
- Deprecated not declaring a
\Throwable
argument inRetryStrategyInterface::getWaitingTime()
- [BC BREAK] The
ChatMessage::fromNotification()
method's$recipient
and$transport
arguments were removed. - [BC BREAK] The
EmailMessage::fromNotification()
andSmsMessage::fromNotification()
methods'$transport
argument was removed. - Deprecate
SlackOptions::channel()
, useSlackOptions::recipient()
instead.
- 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
@expectedDeprecation
annotation, use theExpectDeprecationTrait::expectDeprecation()
method instead.
- Deprecated
RouteCollectionBuilder
in favor ofRoutingConfigurator
. - Added argument
$priority
toRouteCollection::add()
- Deprecated the
RouteCompiler::REGEX_DELIMITER
constant
-
Deprecated
anonymous: lazy
in favor oflazy: true
Before
security: firewalls: main: anonymous: lazy
After
security: firewalls: main: anonymous: true lazy: true
-
Marked the
AnonymousFactory
,FormLoginFactory
,FormLoginLdapFactory
,GuardAuthenticationFactory
,HttpBasicFactory
,HttpBasicLdapFactory
,JsonLoginFactory
,JsonLoginLdapFactory
,RememberMeFactory
,RemoteUserFactory
andX509Factory
as@internal
. Instead of extending these classes, create your own implementation based onSecurityFactoryInterface
.
-
Deprecated
ROLE_PREVIOUS_ADMIN
role in favor ofIS_IMPERSONATOR
attribute.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
LogoutSuccessHandlerInterface
andLogoutHandlerInterface
, register a listener on theLogoutEvent
event instead. -
Deprecated
DefaultLogoutSuccessHandler
in favor ofDefaultLogoutListener
. -
Deprecated
RememberMeServicesInterface
implementations without alogout(Request $request, Response $response, TokenInterface $token)
method.
-
Added support for parsing numbers prefixed with
0o
as octal numbers. -
Deprecated support for parsing numbers starting with
0
as octal numbers. They will be parsed as strings as of Symfony 6.0. Prefix numbers with0o
so that they are parsed as octal numbers.Before:
Yaml::parse('072');
After:
Yaml::parse('0o72');
-
Deprecated using the
!php/object
and!php/const
tags without a value.